To convert a hexadecimal to decimal all we have to do is do is perform the opposite procedure we used to convert to hex.
In this example we will turn back the number that we used here(#35) into decimal.
First we must use the table to get back again the Remainder
Note: each hexadecimal digit represents the Remainders found when converting the number from decimal to hexadecimal
Now revert the Process by performing these simple steps:
In this example we will turn back the number that we used here(#35) into decimal.
First we must use the table to get back again the Remainder
Decimal value | Hex Equivalent |
---|---|
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 |
Now revert the Process by performing these simple steps:
- Use the table above to find the decimal equivalent of each Remainder in the case of #35 is 3 5
- Multiply each of the remainders(decimal equivalent of each hex character) by 16 to the power of "n" where "n" is the position of each character. The position of the character is found by counting from right to left and starting the count on 0 rather than 1. Note: the first position is 0.
- Repeat the process for each hexadecimal character and sum up all of the results.
Full example | Result |
---|---|
(3 x 161) + (5 x 160) | 48 + 5 = 53 |
References:
Comentarios
Publicar un comentario