Top

In mathematics, hexadecimal is a positional numeral system with base 16. Hexadecimal numbers are easy to read and write than binary numbers. This system is very helpful to represent every byte as two consecutive hexadecimal digits. Hexadecimal system is also known as base-16 number system. Each hexadecimal digit represents four binary digits.

Hexadecimal system consists of 16 symbols: The numbers 0-9 and the letters A-F. For example, decimal number 11 is represented as B in this system.
Numbers in the hexadecimal number system are shown as:

 Decimal to Hexadecimal 0 0 1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 A 11 B 12 C 13 D 14 E 15 F

We can convert hexadecimal to decimal as same as we converted decimal to binary numbers, except hexadecimal is based on 16 instead of 10. Lets see with the help of example how to convert hexadecimal to decimal.

Example: Convert A2BC into decimal system.

Solution:

(A2BC)$_{16}$ = A x 16$^3$ + 2 x 16$^2$ + B x 16$^1$ + C x 16$^0$

= 10 x 4096 + 2 x 256 + 11 x 16 + 12

= 40960 + 512 + 176 + 12

= 41660

Therefore, (A2BC)$_{16}$ = 41660$_2$