GATE Computer ScienceEasyGATE CS (PYQ pattern)

IEEE 754 half precision has 1 sign bit, 5 exponent bits (bias 15) and 10 fraction bits. What is the smallest positive integer that it cannot represent exactly?

  1. A. 2048
  2. B. 1025
  3. C. 4097
  4. D. 2049

Correct answer: D. 2049

With 10 stored fraction bits plus the hidden bit there are 11 significant bits, so every integer up to 2¹¹ = 2048 is exact. Above 2048 the spacing is 2, so 2049 is the first gap. (The largest finite value, 65504, is far above.)

More Digital Logic questions

Exams that ask this topic