The 32-bit IEEE 754 single precision representation of a number is 0xC2710000. The number in decimal representation is ________. (rounded off to two decimal places)
GATE 2026 CS2 Q.34: solution and answer
Answer and solution
ANSWER
The number is .
Official answer: -60.25Source: Official answer key, GATE 2026 CS2 (IIT Guwahati)
Write the hex word in binary: , and the other four hex digits are . So
0xC2710000is .Split the 32 bits as 1 sign bit, 8 exponent bits and 23 fraction bits: .
IEEE 754 single precision gives the value , where is the exponent field read as an unsigned number.
The sign bit is , so the number is negative.
The exponent field is , so the true exponent is .
The fraction begins followed by zeros, so .
Value , which is already exact to two decimal places.
KEY IDEA
Split the 32 bits as 1 sign, 8 exponent and 23 fraction bits. The value is , with the leading 1 of the mantissa implied.
WATCH OUT FOR
Regrouping the hex bits wrongly. The exponent field starts at the second bit, so it straddles the first two hex digits. Forgetting the implied leading 1, or the bias of 127, also gives a wrong value.
From the GATE 2026 CS2 paper. Every question of this paper · Download the full paper · All 18 Number systems questions, with notes
More Number systems questions
- GATE 2025 CS1 Q.25 · MSQ · 1 markThe number -6 can be represented as 1010 in 4-bit 2's complement representation.
- GATE 2025 CS2 Q.49 · MSQ · 2 marksThree floating point numbers X, Y, and Z are stored in three registers R_X, R_Y, and R_Z, respectively in…
- GATE 2025 IN Q.18 · MCQ · 1 markThe 4-bit signed 2's complement form of (5)_10 + (5)_10 is
- GATE 2024 CS1 Q.13 · MCQ · 1 markConsider a system that uses 5 bits for representing signed integers in 2's complement format.
