Class: Flt::RelativeTolerance
- Defined in:
- lib/flt/tolerance.rb
Overview
Implementation of relative tolerances
Direct Known Subclasses
BigEpsilonTolerance, EpsilonTolerance, PercentTolerance, PermilleTolerance
Instance Method Summary collapse
-
#initialize(value) ⇒ RelativeTolerance
constructor
A new instance of RelativeTolerance.
- #relative_to(x) ⇒ Object
- #to_s ⇒ 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?, #relative_to_many, #seq?, #value, #zero?
Constructor Details
#initialize(value) ⇒ RelativeTolerance
Returns a new instance of RelativeTolerance.
277 278 279 |
# File 'lib/flt/tolerance.rb', line 277 def initialize(value) super end |