Methods

Class Index [+]

Quicksearch

Flt::SigBitsTolerance

Implementation of (floating) tolerances given in number of significant bits

Public Class Methods

new(ndec, rounded = true) click to toggle source
     # File lib/flt/tolerance.rb, line 473
473:     def initialize(ndec, rounded = true)
474:       super Tolerance.bits(ndec, rounded), 2
475:       @bits = ndec
476:       @rounded = rounded
477:     end

Public Instance Methods

to_s() click to toggle source
     # File lib/flt/tolerance.rb, line 478
478:     def to_s
479:       "#{@bits} sig. #{@rounded ? 'r.' : 'r'}bits"
480:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.