Methods

Class Index [+]

Quicksearch

Flt::SigDecimalsTolerance

Implementation of (floating) tolerances given in number of significant decimal digits

Public Class Methods

new(ndec, rounded = true) click to toggle source
     # File lib/flt/tolerance.rb, line 449
449:     def initialize(ndec, rounded = true)
450:       super Tolerance.decimals(ndec, rounded), 10
451:       @decimals = ndec
452:       @rounded = rounded
453:     end

Public Instance Methods

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

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.