Hexadecimals

16/08/2013 11:05

...

There are 2 units of measurement that you'll soon understand: 

  • Hexidecimals (based on the number 8, used commonly in computer programming ie #26FF00)
  • Decimals (based on the number 10 and taught in primary school ie 1.5)

 

Firstly, an overview of Hexidecimals (More commonly reffered to as Hex codes). They are displayed with a '#' sign in front of them and have 3 groups of characters within them. For example, in the hexidecimal code #26FF00 the first 2 digits reffer to the amount of Red in the color, the next 2 digits refer to the amount of Green, and the last 2 are the amount of Blue. 

There are a maximum of 255 decimal values for each color and by assigning different amounts of color to each value spectrum, you can effectively mix the colors and form a new one!  

Hexidecimals are different from Decimals though, making it slightly harder to count but I know you can handle it. ;D

As we count from 0 to 1-2-3-4-5-6-7-8-9 we Don't continue to 10-11-12... We use letters A-F as Numerical Values larger than 10. So we can count like so:

0-1-2-3-4-5-6-7-8-9-A-B-C-D-E-F but then we begin to type 10, 11, 12...but only after we get to the decimal value of 16 or 'F'. This is because, as previously mentioned, Hexidecimals are based on the number 8 and 2*8 is 16. After this we can continue to count like so:

 

E-F-10-11-12-13-14-15-16-17-18-19-1A-1B-1C-1D-1E-1F

We then continue back to our regular number system:

20-21-22-23-24-25-26-27-28-29

But then we continue to add the number that comes after 1: 2! And we continue on: 

2A-2B-2C-2D-2E-2F-30-31-32...
 

And we coontinue until the sequence of:

9A-9B-9C-9D-9E-9F...

 

And alas, we have ran out of numbers to add in front of said letters! After this we continue on by having letters in the first slot. As shown:

 

A0-A1-A2-A3-A4-A5-A6-A7-A8-A9-AA-AB-AC-AD-AE-AF-B0-B1-B2...

If you ever find yourself stumped, there are countless hexidecimal generators online and visual ways of portraying this information.

Happy Counting!