The hexadecimal system
The hexadecimal number system is very closely related to the binary system.
Because it is a system based on 16 different digits, the numbers 0 to 9 and the letters A to F are used to represent each hexadecimal (hex) digit. A in hex = 10 in denary, B = 11, C = 12, D = 13, E = 14 and F = 15.
Converting from binary to hexadecimal and from hexadecimal to binary.
Converting from hexadecimal to binary is also very straightforward, simply take each hexadecimal digit and write down the 4-bit
code which corresponds to the digit.
Converting from hexadecimal to denary and from denary to hexadecimal.
To convert hexadecimal numbers into denary involves the value headings of each hexadecimal digit; that is, 4096, 256, 16 and 1.
Take each of the hexadecimal digits and multiply it by the heading values. Add all the resultant totals together to give the denary number. Remember that the hex digits A → F need to be first converted to the values 10 → 15 before carrying out the multiplication. This is best shown by two examples: