quote:Original post by Turtlebread
I''m lookin for a tutorial or something on hexadecimal numbers. I understand the basic premise, ie 0-9, a= 10, b=11, f=15..and combining them: 2f = 47, 3a = 58.
But i get lost when you get things like this: 0x8000...I''m pretty sure its hexadecimal, I just don''t know what it is. Can anyone point me in the right direction?
Thanks,
-Chris
It is pretty simple really it just 16 base airthmetic instead of base 10. So 0x8000 is equivalent to:
8*16^3 == 8*4096 == 32768
the 16^3 comes from the position of the 8 which is 3 starting with 0. If you had 0x8001 base is equivalent to:
8*16^3+1*16^0 == 8*4096+1 = 32769
If you had 0x80021, this is equvalent to:
8*16^3 + 2*16^1 + 1*16^0 == 8*4096+2*16+1 == 32768+32+1 == 32801
If you are working on a windows system, take a look at the calculator. Under the view menu option is a scientific option, this has an option to allow you to convert hex to dec to bin and vice versa. Good Luck.