Question

The decimal value 0.5 in IEEE single precision floating point representation has

Choose one option
Official answer and solution
Official answer
B
From
Official GATE 2012 answer key

Solution

Convert the decimal number 0.5 to normalized binary scientific notation and compute the IEEE 754 single precision fields.

We represent 0.5100.5_{10} in binary scientific notation:

0.510=2−1=1.02×2−10.5_{10} = 2^{-1} = 1.0_2 \times 2^{-1}

In IEEE 754 single precision (32-bit) floating point format:

  • Sign bit S=0S = 0 (positive).
  • The normalized form is (−1)S×(1.M)×2E−127(-1)^S \times (1.M) \times 2^{E - 127}, where MM is the 23-bit fractional mantissa and EE is the 8-bit biased exponent.
  • The unbiased exponent value is e=−1e = -1.
  • The biased exponent stored is E=e+127=−1+127=126E = e + 127 = -1 + 127 = 126.
  • The significand is 1.021.0_2, so the fraction bits (stored mantissa MM) are all zeros: 000…000000\dots000.

Therefore, the representation has fraction bits of 000…000000\dots000 and an exponent value of −1-1.
This corresponds to option (B).

Final answer

B

The answer is the one in the official GATE answer key. The solution is this site's own explanation.

Source

Paper
GATE 2012 Computer Science and Information Technology (CS)
Question
7 of 65, printed as CS Q.7
Section
Computer Science and Information Technology

Report an error in this question

GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.