55.2k views
3 votes
Convert the decimal number -17 to binary (2's complement)

1 Answer

3 votes

Answer:

1111111111101111

Step-by-step explanation:

The binary representation of 17 is 0000000000010001.

In order to get the binary representation of -17 we need to calculate the 2's complement of 0000000000010001.

Step 1 : 1s complement of 0000000000010001 = 1111111111101110

Step 2 : 2s complement => 1111111111101110 + 1 = 1111111111101111

This actually corresponds to the negative of the original number which was 17.

So the 2s complement representation of -17 is 1111111111101111 .

User Saketh
by
8.7k points