Module: Flt::BigEpsilonMixin
- Included in:
- BigEpsilonTolerance, FltBigEpsilonTolerance
- Defined in:
- lib/flt/tolerance.rb
Overview
Mixin for tolerances defined by Big Epsilon or a multiple of it
Instance Method Summary collapse
Instance Method Details
#cast_value(num_class) ⇒ Object
513 514 515 |
# File 'lib/flt/tolerance.rb', line 513 def cast_value(num_class) Tolerance.big_epsilon(num_class, @mult) end |
#descr_value ⇒ Object
516 517 518 |
# File 'lib/flt/tolerance.rb', line 516 def descr_value "#{@mult==1 ? '' : "#{@mult} "} big eps." end |
#initialize(mult = nil) ⇒ Object
509 510 511 512 |
# File 'lib/flt/tolerance.rb', line 509 def initialize(mult=nil) @mult = mult || 1 super nil end |