06 negative number in the binary representation of

In binary, the first is a negative number 1, is an integer of 0.

Binary twos complement negative number;

Error indicates that the demonstration

-3: 10000011 Error!

Correct representation demonstration

-3 : 1111 1101

Source process:

3 of the original code: 0000 0011

Invert the original code: 11111100

Complement: 11,111,101

Complement represents a negative number.

Guess you like

Origin www.cnblogs.com/scopicat/p/11911747.html