GATE / CS ARCHIVE

GATE CSE 2003 / QUESTION 43

Largest spacing in a custom floating-point format

Computer Organization & Architecture · Data Representation & Arithmetic · Full GATE CSE 2003 paper

GATE 2003, Q43 2 marks · MCQ
Report issue

Data Representation & Arithmetic

Question 43, GATE 2003: A 16-bit floating-point scheme has sign s at bit 15, six-bit exponent e at bits 14–9, and nine-bit mantissa integer m at bits 8–0. Its value is (−1)^s(1+m·2^(−9))2^(e−31) if e≠111111₂, and zero otherwise. What is the maximum difference between successive representable real numbers? A. 2^(−40); B. 2^(−9); C. 2^22; D. 2^31.
Tap to enlarge
Your answer
Answer & solution

Answer: C (no official key was published)

1. Within an exponent binade, incrementing the nine-bit mantissa integer by one increments the value by 2e−40. Maximizing this requires the largest nonreserved exponent, 62. The positive/negative sign duplicates gaps by symmetry; crossing zero and crossing adjacent exponent ranges cannot exceed the largest within-binade gap.

2. There are six exponent bits and nine fractional mantissa bits. Exponent 63 is reserved for zero, so the largest usable exponent is e=62. For fixed e, adjacent significands differ by 2⁻⁹, giving spacing 2e−31−9. This is largest at e=62, namely 2²², option C. Crossing a binade boundary has the smaller binade’s spacing, and the gaps adjacent to zero are only 2⁻³¹, so neither produces a larger gap.

Original paper, page 6