How to convert Hexadecimal to Decimal
Converting a hexadecimal number from Hexadecimal system to Decimal system we need to convert decimal (base-10) value corresponding for each digit of hexadecimal number from rigth to left.
Hexadecimal | Decimal |
0 | 0 |
1 | 1 |
2 | 2 |
3 | 3 |
4 | 4 |
5 | 5 |
6 | 6 |
7 | 7 |
8 | 8 |
9 | 9 |
A | 10 |
B | 11 |
C | 12 |
D | 13 |
E | 14 |
F | 15 |
Multiply each decimal to positional value power of 16.
Sum of the values.
Let's see an example. Hexadecimal number is 3A7 :
- 7 is 7 in decimal
- A is 10 in decimal
- 3 is 3 in decimal
- Assign positional values from right to left
- 7 (16^0)
- A (16^1)
- 3 (16^2)
- Multiply each digit by its positional value:
- 7 * 1 = 7
- 10 * 16 = 160
- 3 * 256 = 768
- Sum of the values : 7 + 160 + 768 = 935
The hexadecimal number 3A7 is equivalent to the decimal number 935.