Class: Numeric

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

Instance Method Summary collapse

Instance Method Details

#tol_eq(v2, t) ⇒ Object

compare with tolerance



58
59
60
# File 'lib/libsessho.rb', line 58

def tol_eq(v2,t) # compare with tolerance
  !(v2<self-t||v2>self+t)
end