Methods

Class Index [+]

Quicksearch

Flt::DecimalsTolerance

Implementation of (absolute) tolerances given in number of decimal digits

Public Class Methods

new(ndec, rounded = true) click to toggle source
     # File lib/flt/tolerance.rb, line 461
461:     def initialize(ndec, rounded = true)
462:       super Tolerance.decimals(ndec, rounded)
463:       @decimals = ndec
464:       @rounded = rounded
465:     end

Public Instance Methods

to_s() click to toggle source
     # File lib/flt/tolerance.rb, line 466
466:     def to_s
467:       "#{@decimals} #{@rounded ? 'r.' : 'r'}dec."
468:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.