UPSC 2026 Maths Optional Paper 2 Q6b-i — Step-by-Step Solution
8 marks · Section B
Representation of Integers, Signed Integers, and Reals (incl. Double Precision) · Numerical Analysis · asked 2× in 14 yrs · Read the full method →
Question
Find the decimal equivalent of the following floating point 10-bit numbers with 5 bits as fractional part:
1010111011and0100101010
Technique
“10 bits with 5 bits as fractional part” fixes the position of the binary point: 5 integer bits, then the point, then 5 fractional bits. That is a fixed-point word (a Q5.5 format), so the value is just the positional sum ∑bi2i with i running from +4 down to −5 — equivalently, read all ten bits as one unsigned integer N and divide by 25=32. The only judgement the question demands is whether the leading bit is a sign bit; nothing in the wording says it is, so read the words unsigned, and say so.
Solution
Step 1 — Fix the format explicitly before computing anything.
A 10-bit word b4b3b2b1b0∙b−1b−2b−3b−4b−5 with 5 fractional bits has value
Equivalently, and this is the fastest reliable route under exam pressure:
val=25N=32N,N=the whole 10-bit string read as a plain binary integer,(2)
because inserting a binary point five places from the right is exactly a division by 25. Formula (2) also gives a free arithmetic check on (1).
Convention actually used: the word is read as unsigned. The question describes only a bit-count and the position of the point — it names no sign bit, no bias and no exponent field — so an unsigned fixed-point reading is the one the wording supports. (The signed readings are tabulated in Step 4, for completeness.)
Both values are exact — every Q5.5 word is an exact multiple of 2−5=0.03125, so a terminating decimal with at most five places is guaranteed, and any answer with a recurring tail is wrong by construction. That is a useful sanity rule to state.
Step 4 — The signed readings, stated as labelled alternatives (not as hedging).
The second word begins with 0, so it is positive under every one of the standard conventions and equals 9.3125 in all of them. Only the first word, which begins with 1, is convention-sensitive:
Reading of 1010111011
Value
Unsigned Q5.5 (the reading used above)
32699=21.84375
Sign–magnitude: b9 = sign, remaining nine bits =(010111011) with the same point position
−32699−512=−32187=−5.84375
Two’s complement with the same scaling 2−5
32699−1024=−32325=−10.15625
Which a marker expects: 21.84375. The question supplies exactly one piece of format information — where the binary point sits — and supplies it for both numbers alike; had a sign bit been intended, the effective integer field would be 4 bits, not 5, and the phrase “5 bits as fractional part” would no longer determine the layout. Moreover the second number is deliberately chosen with a leading 0, so that it reads the same either way — the paper is testing positional weighting, not two’s-complement arithmetic. The unsigned values are therefore given as the answer, with the alternatives recorded above so that the reading is a stated decision rather than an accident. ■