"Underflow" redirects here. For the condition of attempting to read an empty buffer, see Buffer underrun.
The term arithmetic underflow (also floating point underflow, or just underflow) is a condition in a computer program where the result of a calculation is a number of more precise absolute value than the computer can actually represent in memory on its central processing unit (CPU).
Arithmetic underflow can occur when the true result of a floating point operation is smaller in magnitude (that is, closer to zero) than the smallest value representable as a normal floating point number in the target datatype.[1] Underflow can in part be regarded as negative overflow of the exponent of the floating point value. For example, if the exponent part can represent values from −128 to 127, then a result with a value less than −128 may cause underflow.
For integers, the term "integer underflow" typically refers to a special kind of integer overflow or integer wraparound condition whereby the result of subtraction would result in a value less than the minimum allowed for a given integer type, i.e. the ideal result was closer to negative infinity than the output type's representable value closest to negative infinity.[2][3][4][5][6]
^Coonen, Jerome T (1980). "An implementation guide to a proposed standard for floating-point arithmetic". Computer. 13 (1): 68–79. doi:10.1109/mc.1980.1653344. S2CID 206445847.
^"CWE - CWE-191: Integer Underflow (Wrap or Wraparound) (3.1)". cwe.mitre.org.
^"Overflow And Underflow of Data Types in Java - DZone Java". dzone.com.
^Mir, Tabish (4 April 2017). "Integer Overflow/Underflow and Floating Point Imprecision". medium.com.
^"Integer underflow and buffer overflow processing MP4 metadata in libstagefright". Mozilla.
^"Avoiding Buffer Overflows and Underflows". developer.apple.com.
and 20 Related for: Arithmetic underflow information
The term arithmeticunderflow (also floating point underflow, or just underflow) is a condition in a computer program where the result of a calculation...
The IEEE Standard for Floating-Point Arithmetic (IEEE 754) is a technical standard for floating-point arithmetic established in 1985 by the Institute...
calculating the product of many numbers can lead to an arithmetic overflow or arithmeticunderflow. This is less likely to occur with the sum of the logarithms...
In computer programming, an integer overflow occurs when an arithmetic operation on integers attempts to create a numeric value that is outside of the...
overflow or underflow conditions. In 2013, John Gustafson proposed the Unum number system, a variant of tapered floating-point arithmetic with an exact...
numbers (sometimes called denormals) that fill the underflow gap around zero in floating-point arithmetic. Any non-zero number with magnitude smaller than...
become large, we need to consider round-off error, arithmetic overflow, and arithmeticunderflow. The method below calculates the running sums method...
the result in case of arithmeticunderflow. For example, using single-precision IEEE arithmetic, if x = −2−149, then x/2 underflows to −0, and dividing...
Saturation arithmetic is a version of arithmetic in which all operations, such as addition and multiplication, are limited to a fixed range between a...
the result of certain computations, for instance as the result of arithmeticunderflow on a negative number (other results may also be possible), or −1...
complementary error function (which can be used instead of erfc to avoid arithmeticunderflow). Another form of erfc x for x ≥ 0 is known as Craig's formula, after...
the same as an arithmetic overflow (which would return an infinity or the largest finite number in magnitude) or an arithmeticunderflow (which would return...
calculated on a computer, leading to an inaccurate result caused by arithmeticunderflow and overflow. The hypot function was designed to calculate the result...
errors, array subscript out of bounds errors, arithmeticunderflow errors, several types of underflow and overflow errors, and many other runtime errors...
sampling, such as IQ tests, are often reported with false precision. Arithmeticunderflow Limit of detection Precision bias Propagation of uncertainty Round-off...
Decimal floating-point (DFP) arithmetic refers to both a representation and operations on decimal floating-point numbers. Working directly with decimal...
1/n} , which can cause underflows. Thus m = ⌊ 2 k / n ⌋ {\displaystyle m=\lfloor {2^{k}}/{n}\rfloor } is used for unsigned arithmetic. Thus we can approximate...
computations – especially when dividing two numbers in integer or fixed-point arithmetic; when computing mathematical functions such as square roots, logarithms...
FP0_FP15 may be HFP or IEEE floating point Bit 22 is renamed as HFP exponent underflow in ESA/390 Bit 23 is renamed as HFP significance in ESA/390 The data returned...