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?
- A. 0x00400000
- B. 0x01000000
- C. 0x00C00000
- 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
- The IEEE 754 single-precision pattern 0xC2F60000 represents −123.0. What is the single-precision bit pattern of −123 × 2⁻¹³⁵?
- In C with IEEE 754 single-precision float, let x = 16777216.0f (2²⁴). What are the values of (x + 1.0f) + 1.0f and x + (1.0f + 1.0f)?
- How many IEEE 754 single-precision numbers x satisfy 1 ≤ x < 1000?
- How many of the 2³² IEEE 754 single-precision bit patterns represent a finite value that is an integer (both zeros included, both signs…
- What is the smallest positive integer N such that N + 0.5 is NOT exactly representable in IEEE 754 single precision?
- Which of the following comparisons evaluate to true when done in IEEE 754 double-precision arithmetic (round to nearest even)? I. 0.1 +…