A computer stores real numbers in floating point form using a mantissa of 8 bits and an exponent of 4 bits. Both are two's complement. The binary point of the mantissa is immediately after the sign bit.
(a) Calculate the denary value of the number with mantissa 01101000 and exponent 0011. [3]
(b) Calculate the denary value of the number with mantissa 01010000 and exponent 1110. [2]
- Exponent 0011 = 3 (so the binary point moves 3 places right)(1)
- Mantissa 0.1101000 becomes 110.1(1)
- 6.5(1)
- Exponent 1110 = −2 and mantissa 0.101 (= 0.625) shown, or point moved 2 places left to give 0.00101(1)
- 0.15625 (allow 5/32)(1)
- Answer: (a) 6.5 (b) 0.15625
- Examiner tip: Say which way the point moves: a negative exponent moves it left, so the number gets smaller.