posted 22 years ago
Its easy to convert a hexadecimal into a decimal.
For eg. lets take your number,0x1c
first multiply the last digit of the hexadecimal number by 16 to the power 0.
c=12
12*16to the power 0=12*1=12
then multiply the next digit by 16 to the power 1
1*16 to the power 1=1*16=16
Then add the products which you got after multiplication.
16+12=28.Thats it!
If there are more digits,then keep on increasing the power.
For eg,if there was a third digit 2 in your number,then it would be multiplied by 16 to the power 2.
I hope that helps.
By the way,there have been numerous threads in this forum,which have talked about this topic.
You can search for them.
Regards
Gautam