GATE Computer ScienceHardGATE CS (PYQ pattern)

Which hexadecimal pattern is the IEEE 754 single-precision representation of 0.1 (round to nearest)?

  1. A. 0x3E4CCCCD
  2. B. 0x3F19999A
  3. C. 0x3DCCCCCC
  4. D. 0x3DCCCCCD

Correct answer: D. 0x3DCCCCCD

0.1 = 1.6 × 2⁻⁴, so the exponent field is 127 − 4 = 123 = 0x7B → 0x3D…; the fraction 0.6 = 0.1001 1001 1001 … is cut after 23 bits and the discarded tail (1001 …) is more than half a unit, so it rounds up to …CCD rather than the truncated …CCC.

More Computer Organization and Architecture questions

Exams that ask this topic