GATE / CS ARCHIVE

GATE CSE 2012 / QUESTION 7

IEEE single-precision representation of one half

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

GATE 2012, Q7 1 mark · MCQ
Report issue

Data Representation & Arithmetic

Question 7, GATE 2012: The decimal value 0.5 in IEEE single precision floating point representation has
        (A) fraction bits of 000…000 and exponent value of 0
        (B) fraction bits of 000…000 and exponent value of −1
        (C) fraction bits of 100…000 and exponent value of 0
        (D) no exact representation
Tap to enlarge
Your answer
Answer & solution

Official answer: B

Step through it (6 steps)

Normalize 0.5 as 1.0₂×2−1. The fractional field after the implicit leading 1 is all zeros; the actual unbiased exponent is −1. Thus B uses the mathematical exponent convention. For clarity, the stored biased exponent is −1+127=126, binary 01111110, and the full 32-bit encoding is 0x3F000000. The exponent field itself is not a signed −1.

Check: The single-precision format has one sign bit, eight exponent bits, and 23 stored fraction bits. Here the sign is 0, the exponent field is 01111110, and every fraction bit is 0; binary fractions with denominator a power of two can be exact.

Original paper, page 3 · Answer key