Class: Numeric
Instance Method Summary collapse
Instance Method Details
#close?(to, delta) ⇒ Boolean
274 275 276 |
# File 'lib/bacon.rb', line 274 def close?(to, delta) (to.to_f - self).abs <= delta.to_f rescue false end |
274 275 276 |
# File 'lib/bacon.rb', line 274 def close?(to, delta) (to.to_f - self).abs <= delta.to_f rescue false end |