lib/darkext/float.rb in darkhelmet-darkext-0.10.0 vs lib/darkext/float.rb in darkhelmet-darkext-0.11.0
- old
+ new
@@ -1,8 +1,6 @@
class Float
- EPISILON = 1e-6
-
# Equals for floats with tolerance
- def equals?(x, tolerance = EPISOLON)
+ def equals?(x, tolerance = 1e-6)
(self - x).abs < tolerance
end
end