PHP original code, anti-code, complement introduction
PHP original code, anti-code, complement the introduction of the original code: is "The original binary code", in fact, we can understand the decimal conversion to binary after a character code obtained. The original code is understandable in numbers. But in the actual computer running process, but often do not use the original code, so there are anti-code, complement the problem. On this basis, the rule: the first bit of a binary number is the sign bit, 0 for positive numbers, and 1 for negative numbers. Example: (all take 8 bits for example): 7:00000111-7:10000111 anti-code: Positive inverse code is itself. The inverse of a negative number is the non-symbolic part of the original code, each bit reversed. Example: 7:00000111-7:11111000 Complement: Positive complement is its own negative anti-code, sign bit unchanged, the rest of each after the inverse, the whole plus 1 example: 7:00000111-7:11111000+1 = 11111001
http://www.bkjia.com/PHPjc/1071706.html www.bkjia.com true http://www.bkjia.com/PHPjc/1071706.html techarticle PHP original code, anti-code, complement the introduction of PHP original code, anti-code, complement introduction of the original code: is the original binary code, in fact, we can understand the conversion of decimal into binary system after getting ...