226k views
4 votes
What decimal number does the bit pattern 1100 0101 represent if it is a: unsigned integer? sign-magnitude integer? two's complement integer?

User Helvio
by
7.2k points

1 Answer

6 votes

Answer:

Step-by-step explanation:

There's no such thing as a “two's integer complement integer”. Let's rewrite the question.

What does the bit pattern 11101001 represent if you interpret it as an 8-bit signed integer?

No need to reference 2’s complement, since that is now a universal representation.

Look at the Most Significant Bit. 1 indicates it's a negative number.

To get the magnitude: perform 2’s complement arithmetic.

Flip all the bits. 00010110.

Add 1. 00010111.

Translate into decimal. 23.

Apply the saved sign. -23.

User Dzhuneyt
by
7.1k points