GATE Computer ScienceModerateGATE 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, and what is its largest finite value?

  1. A. 2049 and 65504
  2. B. 1025 and 65504
  3. C. 2049 and 65535
  4. D. 2048 and 65504

Correct answer: A. 2049 and 65504

With a hidden bit the significand has 11 bits, so all integers up to 2¹¹ = 2048 are exact and 2049 is the first that is not. The largest finite value uses exponent field 30 (2¹⁵) and significand 2 − 2⁻¹⁰: 65,504. 1025 forgets the hidden bit; 65,535 assumes integer coding.

More Computer Organization and Architecture questions

Exams that ask this topic