Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - Help: Minimum value of basic integer variable
Help: Minimum value of basic integer variable
In computer, it is represented by complement.

Positive number: the complement of positive number is the same as the original code.

Negative number: The complement of negative number is that the sign bit is "1", the value is reversed bit by bit, and then 1 is added to the last bit (lowest bit). That is "anti-code+1".

The first 1 and the following 15 zeros stored in the computer (represented by the complement).

To convert into the original code, you have to go through a bitwise negation (16 1, the first 1 is the sign bit), and finally add 1 (the sign bit is unchanged, that is, 1 5 zeros), which is-