Jump to content

Arithmetic underflow

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by JakeVortex (talk | contribs) at 02:19, 8 December 2004 (floating point). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

The term arithmetic underflow or simply underflow has the following meanings.

  1. In a digital computer, the condition that occurs when a calculation produces a result that is less than a given register or storage location can store or represent.

For floating point arithmetic, and underflow occurs when the magnitude of intermediate result (i.e., before rounding) is strictly between the smallest normal floating point number in the format and zero. As specified in IEEE 754 the underflow condition is only signalled if there is also a loss of accuracy. Typically this is determined as the final result being inexact. However if the user is trapping on underflow, this happens regardless of consideration for loss of precision.