GATE / CS ARCHIVE

GATE CSE 2005 / QUESTION 85a

Unnormalized custom floating-point encoding

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

GATE 2005, Q85a 2 marks · MCQ
Report issue

Data Representation & Arithmetic

Question 85a, GATE 2005: A 16-bit format has sign bit 15, seven-bit excess 64 exponent in 14…8, eight-bit pure fractional mantissa in 7…0; sign-magnitude. Printed 85(a): encode positive 0.239×2^13 without normalization or rounding. Hex choices A 0D24; B 0D4D; C 4D0D; D 4D3D.
Question 85a, GATE 2005: A 16-bit format has sign bit 15, seven-bit excess 64 exponent in 14…8, eight-bit pure fractional mantissa in 7…0; sign-magnitude. Printed 85(a): encode positive 0.239×2^13 without normalization or rounding. Hex choices A 0D24; B 0D4D; C 4D0D; D 4D3D.
Tap to enlarge
Your answer
Answer & solution

Answer: D (no official key was published)

The sign is 0. The seven-bit biased exponent is 13+64=77=0x4D. The eight-bit pure-fraction field is obtained by truncation: floor(0.239×256)=61=0x3D, binary 00111101. Concatenating sign, exponent, and mantissa gives 0x4D3D, option D. No normalization or rounding is applied.

Bias affects the exponent field, not the mantissa:13+64=77, or binary 1001101. Truncating eight fraction bits gives floor(.239×256)=61, binary 00111101. The sign 0 followed by exponent 1001101 produces the high byte 01001101=4D; the low byte is 3D. Round-to-nearest would be a different instruction, explicitly excluded here.

Original paper, page 12