GATE Computer ScienceVery hardGATE CS (PYQ pattern)

In IEEE 754 single precision with round-to-nearest-even, let x = 3 × 2⁻¹⁴⁹ (three times the smallest positive denormal). What are x / 2 and x / 4?

  1. A. 2⁻¹⁴⁹ and 0
  2. B. 2⁻¹⁴⁹ and 2⁻¹⁴⁹
  3. C. 2⁻¹⁴⁸ and 0
  4. D. 2⁻¹⁴⁸ and 2⁻¹⁴⁹

Correct answer: D. 2⁻¹⁴⁸ and 2⁻¹⁴⁹

Denormals are multiples of d = 2⁻¹⁴⁹. x/2 = 1.5d is a tie between d (odd significand) and 2d (even), so it rounds to 2d = 2⁻¹⁴⁸. x/4 = 0.75d is nearer to d than to 0, so it gives 2⁻¹⁴⁹. Truncation would give d and 0.

More Computer Organization and Architecture questions

Exams that ask this topic