Computer Science for IGCSE & O level - Data Representation (Section 3 - No. 36)

In a two's complement system, how is the number -5 represented in an 8-bit format?
00000101
11111011
11111010
10000101

Explanation

To get -5, you first take the binary of 5 (00000101), invert all the bits (11111010) and add 1.

Comments (0)

Advertisement