Before learning the decimal to hexadecimal conversion formula, let us recall what is a hexadecimal system and a decimal system. A decimal system is a number system with base 10 and a hexadecimal system is a number system with base 16. Let us learn about decimal to hexadecimal conversion with a few examples in the end.
What Is Decimal to Hexadecimal Conversion Formula?
We can convert this number system to a standard decimal system (base 10) by following some basic mathematical calculations for decimal to hexadecimal conversion. Here are the steps.
Firstly, divide the given decimal by 16 and keep the remainder aside.
Now, again divide the quotient by 16.
Repeat this until the quotient becomes zero.
Replace 10, 11, 12, 13, 14, 15 by A, B, C, D, E, F in the remainder respectively.
Arrange all the values of the remainder in reverse order.