Jump to content

Arithmetic overflow

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by 68.198.8.180 (talk) at 00:18, 19 September 2009. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

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

  1. In a computer, the condition that occurs when a calculation produces a result that is greater in magnitude than that which a given register or storage location can store or represent.
  2. In a computer, the amount by which a calculated value is greater tha


dick in a box


Division by zero is not a form of arithmetic overflow. Mathematically, division by zero within reals is explicitly undefined; it is not that the value is too large but rather that it has no value.

An unhandled arithmetic overflow was the primary cause of the crash of Ariane 5 Flight 501.

See also

  • IEEE 754
  • Integer overflow
  • Arithmetic underflow
  • Infinity (note that infinity as a value does not indicate that overflow has occurred; infinity is a value just like 10, 5.5, etc., but an infinity is often used as replacement value when a floating point overflow occurs)