True Form - original code

English: True Form
Chinese: Original code
Introduction : It is a binary fixed-point representation method for numbers in a computer.

The original code representation adds a sign bit in front of the value (that is, the highest bit is the sign bit): the bit is 0 for positive numbers, and 1 for negative numbers (0 has two representations: +0 and -0), and the remaining bits Indicates the size of the value.

That is, the highest bit is used to indicate the positive or negative value of the value, ==0 positive 1 negative ==, and the remaining bits are used to indicate the numerical value of this number.

For example, we use 8-bit binary to represent a number, the original code of +11 is 00001011, and the original code of -11 is 10001011.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325564571&siteId=291194637