Software testing study notes: basic introduction to binary

Basic introduction to
binary 1. Basic description of binary

Binary is a kind of mathematical base, which has only two bases, 0 and 1. It is now widely used in computers. [The base system used in the bottom layer of the computer is binary.

Second, why the computer can recognize binary

Modern computers are powered on to work. When current flows through the hardware, a voltage is generated. At this time, people artificially specify a voltage value. If the value is greater than this value, we call it high potential 1, and if the value is smaller, we call it low potential 0. In this way, we found that its bottom layer has only two states, which correspond to 0 and 1 in binary, so the computer indirectly corresponds to knowing 0 1

Third, the benefits of using binary systems for computers

The technology is simple to implement, and the state is stable. The
binary system exactly corresponds to the true and false in the logic operation. 1 can represent true 0 can represent false (1true 0false)
Binary can be converted to decimal very easily

Guess you like

Origin blog.csdn.net/m0_51684972/article/details/112297357