38.2k views
2 votes
Convert the following two's complement binary numbers to decimal numbers

01001101

User Kapso
by
7.4k points

1 Answer

0 votes

Final answer:

To convert the two's complement binary number 01001101 to decimal, multiply each binary digit by its corresponding power of 2 starting from the right (1, 2, 4, etc.), and add them together, which gives the decimal number 38.

Step-by-step explanation:

To convert the two's complement binary number 01001101 to a decimal number, we follow these steps:

  1. As the leftmost bit is 0, the number is positive.
  2. Write down the powers of 2 from right to left above each bit of the number: 64 32 16 8 4 2 1.
  3. Multiply each bit by its corresponding power of 2 and sum the result: (0 × 64) + (1 × 32) + (0 × 16) + (0 × 8) + (1 × 4) + (1 × 2) + (0 × 1).
  4. The sum is 32 + 4 + 2 = 38, so the decimal representation is 38.
User Paul Watson
by
8.0k points