In Files


Class Index [+]



Inexact Exception.

This occurs and signals inexact whenever the result of an operation is not exact (that is, it needed to be rounded and any discarded digits were non-zero), or if an overflow or underflow condition occurs. The result in all cases is unchanged unless the context has exact precision, in which case the result is Nan

Public Class Methods

handle(context, *args) click to toggle source
     # File lib/flt/num.rb, line 245
245:     def self.handle(context, *args)
246:       context.num_class.nan if context.exact?
247:     end

Disabled; run with --debug to generate this.


Generated with the Darkfish Rdoc Generator 1.1.6.