Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
thayne
11 days ago
|
parent
|
context
|
favorite
| on:
It's OK to compare floating-points for equality
You should allow the user to supply the epsilon value, because the precision needed for the assertion will depend on the use case.
help
Consider applying for YC's Summer 2026 batch! Applications are open till May 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: