Worked solution from the Data Representation Paper 3 Advanced Theory booklet, Part 3 of 3.
Write 65.25 in binary: 64 + 1 + 0.25 = 1000001.01.
Add a sign bit 0 and move the point to just after the sign: 0.100000101 × 27. The point moved 7 places, so the exponent is 7 = 0111 in 4 bits.
The mantissa is the sign bit 0, then 100000101, then 00 to fill all 12 bits.
| Mantissa | Exponent |
|---|---|
| 010000010100 | 0111 |
Working: 65.25 converted to binary, 1000001.01 [1]
Mantissa 010000010100 [1]
Exponent 0111 [1]
Write: the fraction 0.20 cannot be written exactly as a sum of halves, quarters, eighths and so on, so the closest value that can be stored is 0.25 or 0.1875 [1]
This gives a loss of precision because of a rounding error (truncation) [1]
▶ Topic lesson
A lesson on this topic · by Craig'n'Dave. Tap the picture to open it on YouTube.
Solutions follow the official Cambridge mark schemes; marks are shown in grey. Videos are from other YouTube channels. Paper codes read component / series / year: M/J = May/June, O/N = October/November. Past-paper questions © UCLES, reproduced for classroom practice.