Jump to content
  • Advertisement
Sign in to follow this  
OneThreeThreeSeven

Hex Numbers... O_o

This topic is 3098 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hex numbers go 0 1 2 3 4 5 6 7 8 9 A B C D E F 10 11 12 13 14 15 16 17 18 19 1A 1B 1C 1D 1E 1F 20 21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F But after 9, what numerical values do the letters have? Is it going 10, 11, 12, 13, 14, 15, 10, 11, etc?

Share this post


Link to post
Share on other sites
Advertisement
Hex -> Decimal system conversion table:
A -> 10
B -> 11
C -> 12
D -> 13
E -> 14
F -> 15

But 10 in hexadecimal means (1 * 16 + 0)=16 in decimal system thus SIXTEEN.
The same for 11 in hexadecimal that is (1 * 16 + 1)=16 in decimal system thus SEVENTEEN.

In hexadecimal (and also in binary or octal systems) you should read each digt/letter by itself starting from left.
To convert hexadecimal values to decimal numbers you just have to sum all digits/letter multiplied each for a 16 factor (2 in binary, 8 in octal) power by position (0 is power of most right digit/letter, 1 is power of the second most right digit/letter and so on).

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!