GATE Computer ScienceModerateGATE CS (PYQ pattern)

What is the smallest positive integer N such that N + 0.5 is NOT exactly representable in IEEE 754 single precision?

  1. A. 16777216
  2. B. 4194304
  3. C. 8388607
  4. D. 8388608

Correct answer: D. 8388608

In [2^k, 2^(k+1)) single precision has spacing 2^(k−23). Spacing 0.5 holds up to k = 22, i.e. below 2²³ = 8388608, so 8388607.5 is still exact. From 2²³ the spacing is 1, so 8388608.5 is not representable. 2²⁴ is the integer limit, not the half-integer one.

More Digital Logic questions

Exams that ask this topic