In IEEE 754 single precision, what does an exponent field of all 1s with a fraction field of all 0s represent?
Correct answer A. Infinity, with the sign bit giving plus or minus
Explanation
The all-ones exponent (255) is reserved. With a zero fraction it encodes plus or minus infinity, for example 0x7F800000; with a non-zero fraction it encodes NaN. The largest finite normalised number uses exponent 254, not 255. Denormals sit at the other end, using an all-zeros exponent to fill the gap near zero gradually.
Answer checked How we write and check questions
Discussion