What integer is represented by the following 8-bit twos complement representation: 1011 0000 ? (Enter your number in decimal, and include a negative sign if necessary)

Answer :

Answer:

-80

Explanation:

We have:  1 0 1 1   0 0 0 0

Then we assign to each digit the corresponding power of 2.  

See it in a table:

[tex]\begin{matrix}1&0&1&1&0&0&0&0\\2^7&2^6&2^5&2^4&2^3&2^2&2^1&2^0 \end{matrix}[/tex]

Then multiplying each digit by its corresponding power of 2 and then adding the results, we get:

[tex]-2^7+2^5+2^4[/tex]

Notice the very first digit to the left corresponding to the [tex]2^7[/tex] power should be negative according to the format of two’s complement representation.

We get:

[tex]-128+32+16=-80[/tex]

Other Questions