Computer Science for IGCSE & O level - Data Representation (Section 17 - No. 37)

What is the result of converting the 8-bit binary number 10110011 to its decimal equivalent using the two's complement method?
-77
-7
179
7

Explanation

In two's complement, the leftmost bit represents the sign. If the leftmost bit is 1, the number is negative. The calculation involves inverting the bits and adding 1 to get the magnitude and then applying the sign.

Comments (0)

Advertisement