Class: Float

Inherits:
Object
  • Object
show all
Defined in:
lib/procview.rb

Instance Method Summary collapse

Instance Method Details

#near?(another_float, delta = 0.01) ⇒ Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/procview.rb', line 8

def near?(another_float,delta=0.01)
    self.abs - another_float.abs < delta
end