3.- Two's Complement. Signed numbers.
-
We have the number 177, we convert it to binary and we obtain:

-
If we convert that number to signed binary, it turns out that the left bit becomes a sign and the numerical value corresponds to the two's complement of the other 7 bits.
-
Two's complement, it results from inverting the bits and adding a 1 to the number obtained:
-
We make this change when the number we want to convert is greater than 127.
-
One way to obtain the decimal number is to subtract it from 256, that is
256 - 177 = 79

