Home >Common Problem >What counting does a computer use?
The computer uses binary numbers for counting; the computer's internal counting, data storage, and operations all use binary numbers. Reason: There are only two digits 0 and 1 in binary coding, which can be easily represented by two-state physical components. That is, the computer uses binary for data calculation and processing, which is technically feasible and easy; the two digits 0 and 1 can represent The "true" and "false" of logical algebra are binary, which makes it easy to use logical algebra as a tool for circuit design, making the computer logical.
The operating environment of this tutorial: Windows 7 system, Dell G3 computer.
The computer uses binary numbers for counting.
The computer’s internal counting, data storage, and operations all use binary.
Binary is a means used inside computers to represent information. People usually ignore it when dealing with computers. We still input or output information in the way people are accustomed to, and the conversion during the period is automatically completed by the computer.
Different from common decimal numbers, binary numbers are widely used in computing technology. The base of this kind of value is 2, and it adopts "two to one". You can compare it with the decimal number "one to ten" for analogy.
There are nine numbers in decimal system, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9.
Binary has only two numbers, 0 and 1.
The decimal single digits start from 0 plus 1 and add to 9. Add 1 to advance one digit and become "10".
As for the binary system, adding 1 from 0 to 1, and then adding 1, the single digit is full, and moving forward one digit becomes "10".
Add 1 to become "11". When adding 1, the ones digit is advanced by 1 to the tens digit, and the tens digit is also advanced by 1 to the previous hundreds digit, so we get "100" and so on. Binary counting table.
This is probably the basic difference between binary and decimal. Similar to this, we also have octal, hexadecimal and so on. However, the computer's internal counting and storage of data all use binary.
Why doesn’t the computer use decimal instead of binary?
The information transmission, storage and processing within the computer all use binary encoding. The main reason is the feasibility, ease of use, simplicity, reliability and logic of using binary. sex.
There are only two digits, 0 and 1, in binary coding, which can be easily represented by two-state physical components. That is to say, the computer uses binary for data operations and processing. Technology It is feasible and easy to do.
There are few binary operation rules, the structure of the computer operator can be greatly simplified, the control is correspondingly simple, the transmission and processing of data are not prone to errors, and the working reliability of the computer is greatly improved.
The two numbers 0 and 1 in binary coding can represent the "true" and "false" of logical algebra. Using binary, it is easy to use logical algebra as a tool to conduct circuits. Design to make computers logical.
Easy to convert, binary and decimal numbers are easy to convert to each other.
Using binary to represent data has the advantages of strong anti-interference ability and high reliability. Because each bit of data has only two states: high and low, when it is disturbed to a certain extent, it can still be reliably distinguished whether it is high or low.
For more related knowledge, please visit the FAQ column!
The above is the detailed content of What counting does a computer use?. For more information, please follow other related articles on the PHP Chinese website!