mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Move Math::TOLERANCE to mruby-math
This commit is contained in:
+1
-2
@@ -151,9 +151,8 @@ end
|
||||
|
||||
##
|
||||
# Performs fuzzy check for equality on methods returning floats
|
||||
# on the basis of the Math::TOLERANCE constant.
|
||||
def check_float(a, b)
|
||||
tolerance = Math::TOLERANCE
|
||||
tolerance = 1e-12
|
||||
a = a.to_f
|
||||
b = b.to_f
|
||||
if a.finite? and b.finite?
|
||||
|
||||
Reference in New Issue
Block a user