GATE 2024 CS (CS2) – Question 14
The format of a single-precision floating-point number as per the IEEE 754 standard is Sign (1 bit), Exponent (8 bits), Mantissa (23 bits). Choose the largest floating-point number among the following options. (A) Sign 0, Exponent 0111 1111, Mantissa all 1s (B) Sign 0, Exponent 1111 1110, Mantissa all 1s (C) Sign 0, Exponent 1111 1111, Mantissa all 1s (D) Sign 0, Exponent 0111 1111, Mantissa all 0s
Practise this question in The GATE Grind →
Show answer and explanation
Correct answer: (B) 0 | 1111 1110 | 1111 1111 1111 1111 1111 111
Explanation
Exponent 1111 1111 with non-zero mantissa is NaN, not a number. The largest finite value has exponent 1111 1110 with all-ones mantissa.