Data Types Activity 3
Data Types Activity 3
Use 8 bits for the mantissa and 4 bits for the exponent.
Remember that both the mantissa and exponent are represented in two’s complement.
Answer
Find complement (swap all 1’s for 0’s and vice versa)
2 1000 0100 0101
0111 1011
Add 1
0111 1100
0111 11.00 = –31 (you have to remember to put the minus sign in!)
011001.10 = +25.5
Version 1
1
Answer
Find complement
5 1011 1110 0100
0100 0001
Add 1
0100 0010
01000.010 = –8.25
Version 1