Object
Return true if the float is within precision of the other value o. This is used to accommodate for floating point errors.
o | value to compare with |
precision | the precision to use in the comparison. |
return | true if the match is within precision |
# File lib/ferret/number_tools.rb, line 11 11: def =~(o, precision = 0.0000000001) 12: return (1 - self/o).abs < precision 13: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.