| Tools: Hex - Dec - Bin Converter - Comments | ![]() |
![]() |
|||||||||||
![]() |
|||||||||||||
![]() |
|||||||||||||
![]() |
|||||||||||||
Hexadecimal numbers Arabic numbers are based on the number 10. There are 10 symbols (0..9) that we use to represent all numbers. 00 00 01 01 02 02 03 03 04 04 05 05 06 06 07 07
08 08 09 09 10 0A 11 0B 12 0C 13 0D 14 0E 15 0F
16 10 17 11 18 12 19 13 20 14 21 15 22 16 23 17
24 18 25 19 26 1A 27 1B 28 1C 29 1D 30 1E 31 1F
32 20 ..... 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 1: find the hex equivalent of the decimal number 106.
0
--- r 6
16 ) 6
------ r A
16 ) 106
0
---- r 3
16 ) 3
---- r E (which is 14 decimal)
16 ) 62
------- r 8
16 ) 1000
The hex value of decimal 1000 is 03E8 Why Hex? 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 0101Look 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: |