In Files

Methods

Class Index [+]

Quicksearch

Flt::Num::DivisionByZero

Division by zero exception.

The result of the operation is +/-Infinity, where the sign is the product of the signs of the operands for divide, or 1 for an odd power of -0.

Public Class Methods

handle(context,sign,*args) click to toggle source
     # File lib/flt/num.rb, line 204
204:     def self.handle(context,sign,*args)
205:       context.num_class.infinity(sign)
206:     end
new(context=nil, sign=nil, *args) click to toggle source
     # File lib/flt/num.rb, line 207
207:     def initialize(context=nil, sign=nil, *args)
208:       @sign = sign
209:       super context
210:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.