module Spec::ObjectExtensions

Defined in:

spec_assert.cr

Instance Method Summary

Instance Method Detail

def close?(other, rel_tol = 1e-7, abs_tol = 0.0) #

Check if the other number is close to this one

Returns true if the numbers are within the relative or the absolute tolerance of each other


[View source]