The solution is as follows:
Binary numbers and hexadecimal numbers are converted into decimal numbers (sum by weight), and the rules for converting binary numbers and hexadecimal numbers into decimal numbers are the same. Binary numbers (or hexadecimal numbers) are expanded into the form of polynomial sum according to the form of bit weight, and the final sum is its corresponding decimal number-abbreviated as "weighted sum"
Decimal number is converted into binary number, hexadecimal number (except 2/ 16 remainder method) and integer conversion. A decimal integer is usually converted into a binary integer by the division of two remainders, that is, the decimal number is divided by two continuously until the quotient is 0, and the remainder is obtained in reverse order, which is called the division of two remainders for short.
Extended data:
Hexadecimal standard notation
When using the number system, various number systems are often represented by simplified codes: for example, decimal numbers are represented by d or omitted; Binary is represented by b; Hexadecimal numbers are represented by H.
For example, the decimal number 123 is expressed as: 123D or123; The binary number 10 1 1 is expressed as:101b; The hexadecimal number 3A4 is expressed as: 3A4H. In addition, hexadecimal numbers also start with "0x" in programming.
Hexadecimal meaning
An important digital system used in computer field.
The description of computer theory and the design of computer hardware circuit are very beneficial. For example, in the design of logic circuits, we should not only consider the completeness of functions, but also consider using as little hardware as possible. Hexadecimal can play a role in theoretical analysis.
For example, a four-bit binary circuit can have at most sixteen states, that is, hexadecimal form. Only when these sixteen states are used or used as much as possible can hardware resources play the greatest role.
Hexadecimal is shorter, because when converting, one digit of 16 can top four digits of binary. You can add a few zeros before the binary, and the meaning remains the same.
References:
Baidu encyclopedia-hexadecimal