Exception: Decimal::Underflow

Inherits:
Exception
  • Object
show all
Defined in:
lib/decimal/decimal.rb

Overview

Numerical Underflow with result rounded to 0 exception.

This occurs and signals underflow if a result is inexact and the adjusted exponent of the result would be smaller (more negative) than the smallest value that can be handled by the implementation (the value emin). That is, the result is both inexact and subnormal.

The result after an underflow will be a subnormal number rounded, if necessary, so that its exponent is not less than Etiny. This may result in 0 with the sign of the intermediate result and an exponent of etiny.

In all cases, Inexact, Rounded, and Subnormal will also be raised.

Instance Attribute Summary

Attributes inherited from Exception

#context

Method Summary

Methods inherited from Exception

handle, #initialize

Constructor Details

This class inherits a constructor from Decimal::Exception