Math 2.0

Numerical analysis Definition

IEEE 754 standard

Builds on Floating-point arithmeticRoundingSubnormal number

Definition

The IEEE 754 standard is the technical standard for floating-point arithmetic of the Institute of Electrical and Electronics Engineers. Its main requirements are the following.

  1. Formats: a format has a base β∈{2,10}\beta \in \set{2, 10}, a precision pp and an exponent range [emin⁡,emax⁡][e_{\min}, e_{\max}] with emin⁡=1−emax⁡e_{\min} = 1 - e_{\max}. The formats binary32 and binary64 have (p,emax⁡)=(24,127)(p, e_{\max}) = (24, 127) and (53,1023)(53, 1023).
  2. Special values: each format contains +0+0 and −0-0, +∞+\infty and −∞-\infty, NaN ("not a number") values, and subnormal numbers.
  3. Encoding: a binary64 number has 11 sign bit, 1111 bits of biased exponent (bias 10231023) and 5252 bits of fraction. The leading significand bit of a normalized number is implicit.
  4. Correct rounding: the operations ++, −-, ×\times, //, square root and fused multiply-add must return the exact result rounded by the current rounding mode.
  5. Rounding modes: the default is round to nearest with ties to even. The other modes are ties away from zero and directed rounding toward 00, +∞+\infty and −∞-\infty.

Remarks

Example: the decimal number 11 in binary64 has sign bit 00, biased exponent 0+1023=10230 + 1023 = 1023 and fraction bits all 00. Non-example: an arithmetic that always computes x+yx + y by chopping the extra digits does not meet clause 4, since in the default mode the result must be rounded to nearest. In binary64 the largest finite number is (2−2−52)×21023≈1.8×10308(2 - 2^{-52}) \times 2^{1023} \approx 1.8 \times 10^{308}, and the smallest positive normalized number is 2−10222^{-1022}. An overflowing result is rounded to ±∞\pm\infty under round to nearest, and an invalid operation such as 0/00/0 or −1\sqrt{-1} returns NaN.

Reading path

To understand this page from the ground up, read these 4 pages in order. The foundations come first.

Show the path as a graph
Each page uses the pages above it. The colour of the bar on a box shows how strong the evidence is, and the box also gives it as text. The list has the same pages.
  • no evidence level
  1. Floating-point arithmetic concept
  2. Rounding concept
  3. Subnormal number concept
  4. IEEE 754 standard definition

Further reading

  1. Web https://en.wikipedia.org/wiki/IEEE_754
About this page
TagPSNW0ZQ0E9
URIm2://PSNW0ZQ0E9
Kinddefinition
WritingW0 stub
MSC65Y04, 65G50
DefinesIEEE 754 standard
UsesFloating-point arithmetic, Rounding, Subnormal number

Markdown · JSON · Edit on GitHub

What this page needs for W1

  • an inventory row: the row of the inventory that the node accounts for (0 of 1)
  • a source with a locator (0 of 1)

The writing levels say how complete the text of a page is. They do not measure its truth.

What links here

No page links to this page yet.