Table of Contents
ToggleDecimal number is a number expressed in the base 10 numeral system. Decimal number’s digits have 10 symbols: 0,1,2,3,4,5,6,7,8,9. Each digit of a decimal number counts a power of 10.
Decimal number example:
65310 = 6×102+5×101+3×100
Hexadecimal number is a number expressed in the base 16 numeral system. Hexadecimal number’s digits have 16 symbols: 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F. Each digit of a hexadecimal number counts a power of 16.
Hexadecimal number example:
62C16 = 6×162+2×161+12×160 = 158010
Convert 756210 to hex:
Division by 16 | Quotient (integer) | Remainder (decimal) | Remainder (hex) | Digit # |
---|---|---|---|---|
7562/16 | 472 | 10 | A | 0 |
472/16 | 29 | 8 | 8 | 1 |
29/16 | 1 | 13 | D | 2 |
1/16 | 0 | 1 | 1 | 3 |
So 756210 = 1D8A16
Convert 3563110 to hex:
Division by 16 | Quotient | Remainder (decimal) | Remainder (hex) | Digit # |
---|---|---|---|---|
35631/16 | 2226 | 15 | F | 0 |
2226/16 | 139 | 2 | 2 | 1 |
139/16 | 8 | 11 | B | 2 |
8/16 | 0 | 8 | 8 | 3 |
So 3563110 = 8B2F16
Decimal base 10 | Hex base 16 |
---|---|
0 | 0 |
1 | 1 |
2 | 2 |
3 | 3 |
4 | 4 |
5 | 5 |
6 | 6 |
7 | 7 |
8 | 8 |
9 | 9 |
10 | A |
11 | B |
12 | C |
13 | D |
14 | E |
15 | F |
16 | 10 |
17 | 11 |
18 | 12 |
19 | 13 |
20 | 14 |
21 | 15 |
22 | 16 |
23 | 17 |
24 | 18 |
25 | 19 |
26 | 1A |
27 | 1B |
28 | 1C |
29 | 1D |
30 | 1E |
40 | 28 |
50 | 32 |
60 | 3C |
70 | 46 |
80 | 50 |
90 | 5A |
100 | 64 |
200 | C8 |
1000 | 3E8 |
2000 | 7D0 |