GATE Computer ScienceVery hardGATE CSE · NIELIT

How many distinct 32-bit patterns represent a NaN (quiet or signalling, either sign) in IEEE 754 single precision?

  1. A. 16777214
  2. B. 8388606
  3. C. 16777216
  4. D. 8388607

Correct answer: A. 16777214

Exponent all ones and a non-zero 23-bit fraction: 2^23−1 fractions × 2 signs = 2^24 − 2 = 16777214.

More Computer Organization and Architecture questions

Exams that ask this topic