Two's Complement to Decimal Conversion

[Decimal to Two's Complement Conversion] [Two's Complement to Decimal Conversion] [Two's Complement Binary Addition Examples]

These are examples of converting an eight-bit two's complement number
to decimal. To do this, you first check if the number is negative or
positive by looking at the sign bit. If it is positive, simply convert
it to decimal. If it is negative, make it positive by inverting
the bits and adding one. Then, convert the result to decimal.
The negative of this number is the value of the original binary.
- Interpret 11011011 as a two's complement binary number, and give its
decimal equivalent.
- First, note that the number is negative, since it starts with a 1.
- Change the sign to get the magnitude of the number.
1 1 0 1 1 0 1 1 ¬ 0 0 1 0 0 1 0 0 + 1 0 0 1 0 0 1 0 1 - Convert the magnitude
to decimal: 00100101
_{2}= 25_{16}= 2×16 + 5 = 37_{10}. - Since the original number was negative, the final result is -37.

- Interpret 01101001 as a two's complement binary number, and give its
decimal equivalent. The number is positive, so simply convert it to
decimal: 01101001
_{2}= 69_{16}= 6×16 + 9 = 105_{10}. - Interpret 11110010 as a two's complement binary number, and give its
decimal equivalent.
1 1 1 1 0 0 1 0 ¬ 0 0 0 0 1 1 0 1 + 1 0 0 0 0 1 1 1 0 _{2}= e_{16}= 0×16 + 14 = 14_{10}. Answer: -14. - Interpret 10011100 as a two's complement binary number, and give its
decimal equivalent.
1 0 0 1 1 1 0 0 ¬ 0 1 1 0 0 0 1 1 + 1 0 1 1 0 0 1 0 0 _{2}= 64_{16}= 6×16 + 4 = 100_{10}. Answer: -100. - Interpret 01010111 as a two's complement binary number, and give its
decimal equivalent. 01010111
_{2}= 57_{16}= 5×16 + 7 = 87_{10}.