Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
da12
on March 30, 2022
|
parent
|
context
|
favorite
| on:
How to compare floats in Python
Could you explain what you mean the 0.0 case? math.isclose() has an abs_tol parameter for, among other things, handling comparisons to 0.
longemen3000
on March 31, 2022
|
next
[–]
The Julia equivalent does a good job explaining the 0.0 case:
https://docs.julialang.org/en/v1/base/math/#Base.isapprox
macintux
on March 30, 2022
|
prev
[–]
I assume “out of the box” is the distinction.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: