Why do computers use binary instead of octal or hexadecimal

Source: Internet
Author: User

Electronic computers can process information and processing at very high speeds, including data processing and processing, and have a great capacity for storing data. Data in the computer in the physical state of the device, using a binary digital system, the computer processing all the characters or symbols to be represented by a binary code.

The advantage of binary is that it is easy to express, the operation rules are simple and the equipment is saved. It is known that components with two stable states (such as transistor conduction and cutoff, relay on and off, electrical pulse level, etc.) are easy to find, and it is difficult to find a component with 10 stable states that corresponds to a decimal 10 number. The cardinality of the binary number is 2, only 0 and 12 digits, every 2 into 1. The decimal number has 0, 1, ... 90 digits, every 10 in 1.


Because the binary is the simplest, only 0 and 1, the speed of the calculation is also the fastest, and the speed of the computer pursuit coincides with, and hexadecimal, decimal or octal binary is not binary fast

It's natural for binary system to use it inside a computer. But in human-computer communication, binary system has a deadly weakness--the writing of numbers is particularly lengthy. For example, decimal system's 100000 is written binary system becomes 11000011010100000. To solve this problem, two auxiliary rounding systems-eight and 16-are used in the theory and application of computers. The three digits of the binary system are recorded as a decimal digit of the octal system, so that the number length is only one-third binary system, and the length of the decimal system is not much. For example, the 100000 of decimal system is written in a eight decimal system, which is 303240. A digit of 16 binary can represent the four digits of the binary system, so that a byte is exactly two digits in a 16-digit system. The 16 binary system requires 16 different symbols, except 0-9 10 symbols, commonly used a, B, C, D, E, F six symbols represent (decimal system) 10, 11, 12, 13, 14, 15 respectively. In this way, the decimal system 100000 is written as a 16-186a0 system.  The conversion between binary system and octal, binary system, and 16 is simple, and the use of octal and 16-digit systems avoids the inconvenience of lengthy numbers, so the octal system and the 16-digit system have become the most commonly used notation in human-machine communication. The future of the computer to use a few binary. If the future develops a hardware that can represent three states (transistors ... The words can be used octal, developed to represent the four-bit state of the word can be used 16,,,,, anyway, is 2 of the power of a positive number,,,

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.