Floating-point arithmetic
Definition
Fix integers (the base), (the precision), and . A floating-point number of this system is or a real number of the form Here the digits are integers with , and the exponent is an integer with . The number is normalized if . Let be the set of these numbers. Let be a rounding to of the real numbers between and , usually rounding to nearest. Floating-point arithmetic replaces each operation on , whenever lies in this range, by that is, the exact result rounded to .
Remarks
Example: with and , the numbers and lie in , and under rounding to nearest. Non-example: with and , the number is not in , since it needs four significant digits. Floating-point addition is commutative but not associative: with and , , while . In the range of normalized numbers and with rounding to nearest, with .
Reading path
To understand this page from the ground up, read these 3 pages in order. The foundations come first.
Show the path as a graph
- no evidence level
- Integers object
- Rounding concept
- Floating-point arithmetic definition
Further reading
About this page
| Tag | R8S821AD6T |
|---|---|
| URI | m2://R8S821AD6T |
| Kind | definition |
| Writing | W0 stub |
| MSC | 65G50, 65Y04 |
| Defines | Floating-point arithmetic |
| Uses | Rounding, Integers |
Markdown · JSON · Edit on GitHub
What this page needs for W1
- 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.