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.

Report a problem

Answer checked How we write and check questions

Tip: press A, B, C or D to answer, and N for the next question.

Advertisement

Have a question about this answer?

Your email address will not be published. Required fields are marked *

Links and website addresses are not allowed in comments.