GATE Computer ScienceModerateGATE CS (PYQ pattern)

The IEEE 754 single-precision patterns 0x00600000 and 0x00200000 are added in single precision. What is the bit pattern of the result?

  1. A. 0x00400000
  2. B. 0x01000000
  3. C. 0x00C00000
  4. D. 0x00800000

Correct answer: D. 0x00800000

Both have exponent field 0, so they are denormals: 0x600000 × 2⁻¹⁴⁹ = 3 × 2⁻¹²⁸ and 0x200000 × 2⁻¹⁴⁹ = 2⁻¹²⁸. The sum 4 × 2⁻¹²⁸ = 2⁻¹²⁶ is the smallest normal number: exponent field 1, fraction 0, i.e. 0x00800000. (The integer sum of the two patterns gives the same here, because denormals continue smoothly into normals.)

More Digital Logic questions

Exams that ask this topic