Parent

Class Index [+]

Quicksearch

Flt::BinNum::Context

This is the Context class for Flt::BinNum.

The context defines the arithmetic context: rounding mode, precision,…

BinNum.context is the current (thread-local) context for DecNum numbers.

Public Class Methods

new(*options) click to toggle source

See Flt::Num::ContextBase#new() for the valid options

See also the context constructor method Flt::Num.Context().

    # File lib/flt/bin_num.rb, line 46
46:     def initialize(*options)
47:       super(BinNum, *options)
48:     end

Public Instance Methods

epsilon(sign=+1) click to toggle source

Normalized epsilon; see Num::Context.epsilon()

    # File lib/flt/bin_num.rb, line 54
54:     def epsilon(sign=1)
55:       super.normalize
56:     end
half_epsilon(sign=+1) click to toggle source

Normalized strict epsilon; see Num::Context.epsilon()

    # File lib/flt/bin_num.rb, line 64
64:     def half_epsilon(sign=1)
65:       super.normalize
66:     end
strict_epsilon(sign=+1) click to toggle source

Normalized strict epsilon; see Num::Context.epsilon()

    # File lib/flt/bin_num.rb, line 59
59:     def strict_epsilon(sign=1)
60:       super.normalize
61:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.