Fortune Telling Collection - Comprehensive fortune-telling - What are the uses of binary in life?

What are the uses of binary in life?

What are the advantages of other decimal systems? It is most convenient to use binary in electronic circuits, so binary has been widely used. Because using binary will make the number of digits very long, and the exchange between hexadecimal and octal is very convenient, programmers often use hexadecimal and octal.

Converting from decimal to other decimal only requires short division, while converting from other decimal to decimal can multiply the number on each digit by the weight and then add it up.

In order to distinguish various decimals, a letter is usually added after the number when writing: for example, B stands for binary, O stands for octal, D or no letter stands for decimal, and H stands for hexadecimal.

It is convenient for computers to handle binary-when calculating and processing numbers, computers use binary counting system internally, which is called binary for short. It has two different numbers: 0 and 1, and every two become one when calculating. For example, decimal 10 equals 2, 1 1 equals 3, 1 10 equals 6 and so on.

Besides binary, the most common one is decimal, which is commonly used in our daily life. I learned it from a primary school math textbook. The international practice is the default decimal system, which needs no explanation. There is also octal, with eight different numbers: 0, 1, 2, 3, 4, 5, 6, 7, so we can't see 8. Hexadecimal-it has sixteen different numbers: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, a, b, c, d, e, f, (where the letters ABC D D D D D stand for 10 and 65438+ respectively. For example, decimal 1F equals 3 1, 2D equals 45, and so on.