number system

A number system, also known as a "calculation system", is a way of representing numerical values with a consistent set of similar symbols and rules. Any numerical system consists of two basic elements: base and bit weight. "Plurality" is total. Numbers are simply symbols of "value" in a particular symbol system. Value should be represented in most signal systems and symbols are only indicators. (Just as talent is the context, and a name is a references to a variety of situations. Maybe your classmates like to call you by their nickname, but your teacher likes to call you by your first name. Whatever your name or nickname, that's right. It refers to you) Base conversion can be perform between different number systems .

basic concepts

Although computers can perform multiple operations very past , their internals are not like the decimal system that humans use in real life, but binary number , which contains only two values of 0 used for of and 1 use for on . this number is also called machine language because 0 and 1 only easy to machine in program not easy to humman . the decimal that people input into the computer is converted into binary for calculation, and the result of the calculation is converted from binary to decimal. This is done automatically by the operating system, and people do not need to do it manually. To learn assembly language , you must understand binary ( and octal / hexadecimal ).

Classification

digital

A different number sign in the number system that represents the magnitude of a basic numerical value . For example, decimal has 10 digits: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9.

cardinality

The number of digits use in cardinality number system . For example, base 2 in binary; base 10 in decimal .base 16 in hexadecimal etc.

power

The magnitude of the value represent by a 1 in a digit in the number system ( the value of the position ). For example, in decimal 123, the digit weight of 1 is 100, the digit weight of 2 is 10, and the digit weight of 3 is 1. 101101 in binary number (generally starting from left to right), the bit weight of the first 1 is 8, the bit weight of 0 is 4, the bit weight of the second one is 2, and the bit weight of the third 1 is 1

count

counting rules. In the most widely used carry number system , the value of the number represented by the symbol representing the number is different at different positions.

decimal

The carry system that people are most familiar with in their daily lives . In decimal , numbers are represented by the ten symbols 0, 1, 2, 3, 4, 5, 6, 7, 8, and 9. The counting rule is tenth.

binary numbers


The binary number system can be used in computer systems . In binary , numbers are represented by the symbols 0 and 1. The counting rule is that every two is added to one, and one borrowed one is two.

hexadecimal

A number system that people can be use in the writing of computer instruction code and data. In hexadecimal , numbers are represented by 0, 1, ..., 9 and A, B, ..., F (or a, b, ..., f) 16 symbols. The counting rule is sixteen.

Number system symbols

binary number B ( binary ) Octal number O ( octal ) decimal number D ( decimal ) Hexadecimal number H (hexadecimal)

example 1