GATE / CS ARCHIVE

GATE CSE 2008 / QUESTION 4

All-zero IEEE binary32 encoding

Digital Logic · Number Systems & Computer Arithmetic · Full GATE CSE 2008 paper

GATE 2008, Q4 1 mark · MCQ
Report issue

Number Systems & Computer Arithmetic

Question 4, GATE 2008: In IEEE floating-point representation, what does hexadecimal 0x00000000 represent?

(A) Normalized value 2^(−127)
(B) Normalized value 2^(−126)
(C) Normalized value +0
(D) Special value +0
Tap to enlarge
Your answer
Answer & solution

Answer: D (no official key was published)

Step through it (6 steps)

1. Split binary32 into sign, exponent and fraction fields. Every field is zero here.
2. An all-zero exponent is reserved for zero/subnormal encodings, so the normalized-number formula with an implicit leading 1 does not apply.
3. The zero fraction makes the magnitude zero; sign bit 0 makes it +0. This is the special value in D.

Original paper, page 2