Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
hansvm
89 days ago
|
parent
|
context
|
favorite
| on:
It's OK to compare floating-points for equality
That works well for sorting/bucketing/etc in a few places, but as a comparison it's prone to false negatives (your values are close and computed to not be close), so you're restricted to algorithms tolerant of that behavior.
Consider applying for YC's Fall 2026 batch!
Applications
are open till July 27.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: