Conversion from the Decimal system to the Hexadecimal System


Similarly to the Natural Binary Code, Hexadecimal system it is a positional notation system with a radix of 16. The conversion from the Decimal system to the Hexadecimal one, looks the same as the Decimal - NBC conversion, with the difference of the divider value, which in Hexadecimal system is equal to 16. The decimal value is simply divided by 16 and then the remainder is written down, the process is repeated until the dividend is equal to 0. The next step requires rewriting the remainders in the reverse order and by this obtaining the result in hexadecimal format.

Example:
213
213 | 16 5
13 | 16 D

213 = D5