Class: Flt::PercentTolerance
- Inherits:
-
RelativeTolerance
- Object
- Tolerance
- RelativeTolerance
- Flt::PercentTolerance
- Defined in:
- lib/flt/tolerance.rb
Overview
Implementation of percent (relative) tolerances
Instance Method Summary collapse
- #cast_value(num_class) ⇒ Object
-
#initialize(value) ⇒ PercentTolerance
constructor
A new instance of PercentTolerance.
- #to_s ⇒ Object
Methods inherited from RelativeTolerance
Methods inherited from Tolerance
#[], big_epsilon, bits, decimals, define_sugar, #descr_value, digits, epsilon, #eq?, #equal_to?, #greater_than?, #gt?, #integer, #integer?, #less_than?, #lt?, #relative_to, #relative_to_many, #seq?, #value, #zero?
Constructor Details
#initialize(value) ⇒ PercentTolerance
Returns a new instance of PercentTolerance.
290 291 292 |
# File 'lib/flt/tolerance.rb', line 290 def initialize(value) super end |