


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



significand
base
← exponent
s E f sign exponent
t binary point fraction
It represents the number (−1)s^ · (1.f ) × 2 E−^127 Note that the leading 1 in the fraction need not be stored explicitly, because it is always 1. This hidden bit accounts for the “1.” here. The “E − 127” in the exponent is to avoid the need for storage of a sign bit. The range of positive normalized numbers is from Nmin = 1. 00 · · · 0 × 2 −^126 = 2−^126 ≈ 1. 2 × 10 −^38 to Nmax = 1. 11 · · · 1 × 2127 = (2 − 2 −^23 ) × 2127 ≈ 2128 ≈ 3. 4 × 1038.
zero = ± 00000000 00000000000000000000000
±∞ = ± 11111111 00000000000000000000000
NaN = ± 11111111 otherwise
s E f sign exponent
t binary point fraction
It represents the numer (−1)s^ · (1.f ) × 2 E−^1023
The range of positive normalized numbers is from Nmin = 2−^1022 ≈ 2. 2 × 10 −^308 to Nmax = 1. 11 · · · 1 × 21023 ≈ 21024 ≈ 1. 8 × 10308.
Special repsentations for 0, ±∞ and NaN.
Let a positive real number x is in the normalized range, i.e., Nmin ≤ x ≤ Nmax, and write in the normalized form x = (1.b 1 b 2 · · · bp− 1 bpbp+1.. .) × 2 E^ , Then the closest floating point number less than or equal to x is x− = 1.b 1 b 2 · · · bp− 1 × 2 E^ , i.e., x− is obtained by truncating. The next floating point number bigger than x− is x+ = ((1.b 1 b 2 · · · bp− 1 ) + (0. 00 · · · 01)) × 2 E^ , therefore, also the next one that bigger than x. If x is negative, the situtation is reversed. Correctly rounding modes:
D. Goldberg. What every computer scientist should know about floating- point arithmetic. ACM Computing Surveys, 18(1):5–48, 1991.
The following recent published textbook gives a broad overview of numerical computing, with special focus on the IEEE standard for binary floating point arithmetic.
M. Overton. Numerical computing with IEEE floating point arithemetic. SIAM, Philadelphia, 2001. ISBN 0-89871-482-6. Student price $20. directly from www.siam.org.