217k views
5 votes
Convert the following two denary numbers into 8-bit binary numbers which use the two’s

complement format.

(i) +52


User Vchan
by
8.3k points

1 Answer

3 votes

Step-by-step explanation:

To convert +52 into 8-bit binary using two's complement format, follow these steps:

Convert 52 into binary:

110100

If the number is positive, the two's complement representation is the same as the binary representation. Since +52 is positive, the two's complement representation is also 00110100.

Note that in two's complement format, the leftmost bit (most significant bit) is used as a sign bit. 0 represents a positive number, while 1 represents a negative number. In this case, since the number is positive, the sign bit is 0. The remaining 7 bits represent the magnitude of the number.

User Cgijbels
by
7.7k points