GATE Computer ScienceHardGATE CS (PYQ pattern)

An 8-bit floating-point format has 1 sign bit, 5 exponent bits (bias 15) and 2 fraction bits, with IEEE-style denormals and exponent field 31 reserved for ∞/NaN. What are its smallest positive value and its largest finite value?

  1. A. 2⁻¹⁶ and 57344
  2. B. 2⁻¹⁷ and 57344
  3. C. 2⁻¹⁶ and 61440
  4. D. 2⁻¹⁴ and 57344

Correct answer: A. 2⁻¹⁶ and 57344

Denormals are 0.ff × 2^(1−15) = 0.ff × 2⁻¹⁴, so the smallest is 0.01₂ × 2⁻¹⁴ = 2⁻¹⁶. The largest finite uses field 30: 1.11₂ × 2^(30−15) = 1.75 × 2¹⁵ = 57344. Using field 31 would give 61440, and forgetting denormals gives 2⁻¹⁴.

More Digital Logic questions

Exams that ask this topic