GATE Computer ScienceModerateGATE CS (PYQ pattern)

How many IEEE 754 single-precision values x satisfy 0 < x < 2⁻¹²⁵?

  1. A. 2²⁴ − 1
  2. B. 2²³ − 1
  3. C. 2²⁴
  4. D. 2²⁴ + 2²³ − 1

Correct answer: A. 2²⁴ − 1

The positive denormals (0.f × 2⁻¹²⁶, f ≠ 0) number 2²³ − 1, all below 2⁻¹²⁶. The normals with biased exponent 1 lie in [2⁻¹²⁶, 2⁻¹²⁵): 2²³ more. Total 2²⁴ − 1. Counting only the denormals gives 2²³ − 1.

More Digital Logic questions

Exams that ask this topic