Question 3 | |||||||||||||
Halfword floating point: | |||||||||||||
b15 | b14 b | b10 | b0 | ||||||||||
s | e | f | |||||||||||
a) Bias: 16 values, use 8 - 1 = 7 | |||||||||||||
b) unsigned binary: | 0010 1011 | ||||||||||||
= 1.01011 * 25 | |||||||||||||
exponent: | 5 + 7 = 12 = 1100 | ||||||||||||
1 | 1100 | 0101 1000 000 | |||||||||||
c) | 0.43 = .01101110000102 | ||||||||||||
= 1.101110000102 * 2-2 | |||||||||||||
exponent: | -2 + 7 = 5 | ||||||||||||
0 | 0101 | 1011 1000 010 | |||||||||||