Which decimal value is stored by the IEEE 754 single-precision pattern 0x41200000?
Correct answer B. 10.0
Explanation
0x41200000 is 0 10000010 0100000...: sign 0, biased exponent 130 so the true exponent is 130 - 127 = 3, and the significand is 1.01 in binary, which is 1.25. The value is 1.25 x 2^3 = 10.0. Forgetting the hidden leading 1 would give 0.25 x 8 = 2, and using 128 as the bias gives 5.0. Normalised numbers always carry an implicit leading 1.
Answer checked How we write and check questions
Discussion