Converting Hexadecimal to Numbers
Lets take a simple hexadecimal number 0X0012
Decimal equivalent would be
0*16 to the power of 3 (total count in the number -1)
+
0*16 to the power of 2 (total count in the number -2)
+
1*16 to the power of 1 (total count in the number -3)
+
2*16 to the power of 0 (total count in the number -4)
=
0+0+16+2=18
Otherway of calculating would be represent each digit in the hexadecimal number to corresponding binary of lenght 4
so 0012 becomes 0000 0000 0001 0010
Assume a hexadecimal number 0X2345
To get to the corresponding decimal number you have to do the following calculation
2*16 to the power of 3 (total count in the number -1)
+
3*16 to the power of 2 (total count in the number -2)
+
4*16 to the power of 1 (total count in the number -3)
+
5*16 to the power of 0 (total count in the number -4)
In otherway 2345 would be 0010 0011 0100 0101
Naturally this would be a big number
If you are still not clear pls do send me a mail at
[email protected]