Exponent–Bias = 254–127 = 127 (254 is the largest value for SP because 255 is reserved.)
Significand = 1.111...12 = almost 2
Value in decimal ≈ 2×2127 = 2128 ≈ 3.4028...×1038
0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 |
Exponent–Bias = 2046–1023 = 1023 (2046 is the largest value for DP.)
Significand = 1.111...12 = almost 2
Value in decimal ≈ 2×21023 = 21024 ≈ 1.797610...×10308
0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 |
1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 |
Question:
What is the smallest normalized single-precision floating-point number?
|
Q: Why is 6 afraid of 7? Q: A: Because 7810. |