Class: Flt::AbsoluteTolerance
- Defined in:
- lib/flt/tolerance.rb
Overview
Implementation of absolute tolerances
Direct Known Subclasses
AbsBigEpsilonTolerance, AbsEpsilonTolerance, DecimalsTolerance
Instance Method Summary collapse
-
#initialize(value) ⇒ AbsoluteTolerance
constructor
A new instance of AbsoluteTolerance.
- #relative_to(x) ⇒ Object
- #relative_to_many(mode, *xs) ⇒ Object
Methods inherited from Tolerance
#[], big_epsilon, bits, #cast_value, decimals, define_sugar, #descr_value, digits, epsilon, #eq?, #equal_to?, #greater_than?, #gt?, #integer, #integer?, #less_than?, #lt?, #seq?, #to_s, #value, #zero?
Constructor Details
#initialize(value) ⇒ AbsoluteTolerance
Returns a new instance of AbsoluteTolerance.
264 265 266 |
# File 'lib/flt/tolerance.rb', line 264 def initialize(value) super end |