Original code
Also called symbol-absolute value code
The highest bit 0 indicates positive, 1 is negative, and the remaining bits is the absolute value of the number bits.
Easy to understand the original code
Subtraction complex, there are subtraction four kinds of operations, increase the complexity of the CPU
The zero representation is not unique
Not applied in the computer
Anti-code
The anti-code operation is inconvenient, nor is it applied in the computer.
Shift Code
The shift code represents the value shift n bit, n is called the shift code amount
Shift code is mainly used for the storage of floating-point number order code
Complement
Known decimal to seek binary
Binary for positive integers
Except 2, until the quotient is zero, the remainder is sorted in flashbacks.
binary with negative integers
First the positive integer corresponding to the negative number of the binary, and then all the bits are reversed, the end of the 1, not enough digits, left 1
Binary with zero
It's all 0.
Binary decimal is known
If the first is 0, it indicates a positive integer, and the common method is to ask for
If the first is 1, it indicates a negative integer, all the bits are reversed, and the end is 1, the resulting number is the absolute value of the negative.
123
The National Computer Grade examination two level course-C Language Programming _ 15th Chapter _ Bit operation