Initial fork commit
This commit is contained in:
5
scripts/geodata/math/floats.py
Normal file
5
scripts/geodata/math/floats.py
Normal file
@@ -0,0 +1,5 @@
|
||||
FLOAT_EPSILON = 1e-09
|
||||
|
||||
|
||||
def isclose(a, b, rel_tol=FLOAT_EPSILON, abs_tol=0.0):
|
||||
return abs(a - b) <= max(rel_tol * max(abs(a), abs(b)), abs_tol)
|
||||
Reference in New Issue
Block a user