Arabic numbers are based on the number 10. There are 10 symbols (0..9) that we use to represent all numbers.

The following is a list of alternating Decimal and Hexadecimal values.

00Why Hex?00010102020303040405050606070708080909100A110B120C130D140E150F1610171118121913201421152216231724182519261A271B281C291D301E311F3220..... etc etc If you want to convert a base 10 number to a base 16 number (decimal to hex) then repetitively divide the decimal number by 16 and keep track of the remainder. Example: find the hex equivalent of the decimal number 106.0 --- r 6 16 ) 6 ------ r A 16 ) 106The hex value 6A is equivalent to the decimal value 106. Example 2: convert decimal 1000 to hex.0 ---- r 3 16 ) 3 ---- r E (which is 14 decimal) 16 ) 62 ------- r 8 16 ) 1000The hex value of decimal 1000 is 3E8

Why do we even USE hexadecimal numbers? Most computers, in use today, utilize binary circuits. Everything (instructions and data) is represented in binary. But displaying information in binary takes a lot of digits. The 5 digit number 32767 is displayed as 11111111111111 (14 binary digits). In hex, it would be 4 digits, 3FFF.

There is a nice correspondence between binary numbers and hexadecimal numbers - exactly 4 binary digits make up 1 hex digit, as shown in the following table.

Binary Hex 0000 0 0001 1 0010 2 0011 3 0100 4 0101 5 0110 6 0111 7 1000 8 1001 9 1010 A 1011 B 1100 C 1101 D 1110 E 1111 FSo given the following binary number ...

10110110101010000101011101010001010101

... and starting on the right, divide the number up into groups of 4. You can add leading zeros to the left most group, (to get 4 digits) if you want.

0010 1101 1010 1010 0001 0101 1101 0100 0101 0101

Look up each group of 4 in the table to see what the hex value is.

0010 1101 1010 1010 0001 0101 1101 0100 0101 0101 2 D A A 1 5 D 4 5 5

Usage:

When you are working with some technical software, such as Norton Utilities, there are some modes where all of the information is displayed in hex.

When working with web pages (in HTML), the colors can be specified using hex numbers to specifiy the intensity of red, green and blue. Example:

<font color="#928AB7"> red green blue

Using this scheme, there are 16,777,216 different colors that can be specified.