You specified that your number is in the additional code. For further conversion, you need to get a direct number code. Therefore, let\'s perform the conversion from additional code to direct code.
to do this, first perform the conversion from the additional code to the reverse by subtracting 1 bit, then get the direct code by inverting all the bits except the signed one.
|
twos-complement |
-1 bit |
ones complement |
direct code |
got It:
let\'s translate to decimal like this:
= = = 10
got It: .1012 =10