Home >Common Problem >13H indicates what base number this is?
13H indicates that this is a hexadecimal number.
H is the first letter of hexadecimal in English, which means it is a hexadecimal number. (Recommended Learning: webfront-end video tutorial)
Hexadecimal (English name: Hexadecimal) is a representation method of data in computers.
It consists of 0-9, A-F, the letters are not case sensitive. The corresponding relationship with base 10 is: 0-9 corresponds to 0-9; A-F corresponds to 10-15; N-base numbers can be represented by numbers from 0 to (N-1), and letters A-F are used for numbers exceeding 9.
Example:
The hexadecimal representation of 20 in decimal is: 2×16¹ 0×16º=32
In decimal 32 expressed in hexadecimal is: 20
Hexadecimal conversion to decimal:
Hexadecimal is 1 for every 16, but we only have 0~9 Ten numbers, so we use the six letters A, B, C, D, E, and F to represent 10, 11, 12, 13, 14, and 15 respectively. The letters are not case sensitive.
The weight of the 0th digit of the hexadecimal number is 16 to the power 0, the weight of the 1st digit is 16 to the 1st power, and the weight of the 2nd digit is 16 to the 2nd power. ……
So, at the Nth (N starts from 0) position, if it is the number β (β is greater than or equal to 0, and β is less than or equal to 15, that is: F), the size expressed is β×16 Nth power.
Suppose there is a hexadecimal number 2AF5
The direct calculation is:
5×160 F×161 A×162 2×163=10997
can also be expressed in vertical form:
0th digit: 5×160=5
1st digit: F×16^1= 240
2nd digit: A×162=2560
3rd digit: 2×163=8192
The above is the detailed content of 13H indicates what base number this is?. For more information, please follow other related articles on the PHP Chinese website!