IEEE 754 standard
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.
- Formats: a format has a base , a precision and an exponent range with . The formats binary32 and binary64 have and .
- Special values: each format contains and , and , NaN ("not a number") values, and subnormal numbers.
- Encoding: a binary64 number has sign bit, bits of biased exponent (bias ) and bits of fraction. The leading significand bit of a normalized number is implicit.
- Correct rounding: the operations , , , , square root and fused multiply-add must return the exact result rounded by the current rounding mode.
- Rounding modes: the default is round to nearest with ties to even. The other modes are ties away from zero and directed rounding toward , and .
Remarks
Example: the decimal number in binary64 has sign bit , biased exponent and fraction bits all . Non-example: an arithmetic that always computes 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 , and the smallest positive normalized number is . An overflowing result is rounded to under round to nearest, and an invalid operation such as or 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
- no evidence level
- Floating-point arithmetic concept
- Rounding concept
- Subnormal number concept
- IEEE 754 standard definition
Further reading
About this page
| Tag | PSNW0ZQ0E9 |
|---|---|
| URI | m2://PSNW0ZQ0E9 |
| Kind | definition |
| Writing | W0 stub |
| MSC | 65Y04, 65G50 |
| Defines | IEEE 754 standard |
| Uses | Floating-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.