Class: Float
- Inherits:
-
Object
- Object
- Float
- Defined in:
- lib/ferret/utils/number_tools.rb
Instance Method Summary collapse
Instance Method Details
#=~(o) ⇒ Object
2 3 4 |
# File 'lib/ferret/utils/number_tools.rb', line 2 def =~(o) return (1 - self/o).abs < 0.0000000001 end |