Y
Hacker News
new
|
ask
|
show
|
jobs
by
ubernostrum
3368 days ago
Python has math.isclose() in the standard library, with configurable tolerances:
https://docs.python.org/3/library/math.html#math.isclose