Floating Point Numbers (5)
Example: N = (101101.101)2, where n + m = 10 and e = 5. Assume that a normalized sign magnitude fraction is used for M and that Excess-16 two’s complement is used for E.
- N = (101101.101)2 = (0.101101101)2 ´ 26
- M = +(0.1011011010)2 = (0.1011011010)2sm
- E = +(6)10 = +(0110)2 = (00110)2cns
- Add the bias 16 = (10000)2 to E
E = 00110 + 10000 = 10110
So, E = (1, 0110)excess-16
- Combining M and E, we have
N = (0, 1, 0110, 1011011010)fp