02-02 Java language basics (base)

What is the base

  • Base: It is the carry system, which is a method of carry stipulated by people.
  • For example, there are 7 days in a week, hexadecimal. There are twelve months in a year, ten binary.

The origin of decimal

The high probability is because humans have 10 fingers. . .

Origin of Binary

  • In fact, the binary system comes from China, please see historical records
  • In the 18th century, the German mathematical philosopher Leibniz read the composition structure of the gossip from the Latin translation of the Book of Changes sent to him by his missionary friend Bowett, and was surprised to find its basic elements (0),( 1), which is the Yin Yao and Yang Yao of the Book of Changes, and its rounding system is binary, which is considered to be the most advanced mathematical system in the world. In the 20th century, the invention and application of the computer, which is regarded as one of the important symbols of the third technological revolution, its operation mode is exactly binary. It not only proves that Leibniz's principle is correct, but also proves that the mathematics of the Book of Changes is remarkable.

Origin of octal

  • Three binary digits form an octal digit

The origin of hexadecimal

  • Four binary digits form a hexadecimal digit

The larger the base, the shorter the representation

Guess you like

Origin blog.csdn.net/qq_37054755/article/details/110685164