One goes from one's complement to two's complement by adding one unit. In this case the unit is 0.000001
, not 1
(it is 1
for integers, but you are not working with integers but with multiples of 0.000001
).
1.011010 <- 1's complement of 0.100101
+ 0.000001
__________
1.011011 <- 2's complement of 0.100101
The addition becomes:
0.011000
+ 1.011011
__________
1.110011 <- 1.110011 is the two's complement of the absolute value of the answer.