## Steps to convert Decimal number to Hexadecimal

There are some shortcut method for decimal to hexadecimal number conversion, here we are using weighted/power method. The need of this conversion is to reduce the no of digits in the resultant number. As here in hexadecimal number system 10 is equivalent to A that is only single character. Same for other numbers up to 15 practice is used in hexadecimal from A to F. Here Hexa means 6 and decimal is 10. So that there are 16 total digital with from 0 to 15.

Hexadecimal numbers are good and suitable alternative in multiple situations where a large decimal numbers are difficult to represent quantities. It's major implementation is in memory management and color codes naming. Each color code can be represented with the conjunction of THREE hexadecimal numbers that subsequently represent red,green and blue color.

To convert the provided decimal number into hexadecimal we have to follow these simple steps.

- In the start we are required a valid decimal number, In that case this will not more than one million.
- After validation the number we will start dividing the provided number by base 16.
- This process will reduce the given number after each iteration.
- The purpose of these all division is to collect remainders
- Each remainder of the division if more that 9 it will be replaced by the corresponding hexadecimal digit from the decimal to hexadecimal table.
- In last step all the remainder are collected and written after combination as result.

The last remainder of the division is called MSB (Most Significant Bit) and the first one is called LSB (Least Significant Bit).

### Example

## Fractional Decimal to Hexadecimal

As of decimal there is also a way for conversion of these numbers into other number system. Here we will convert fractional numbers into hexadecimal numbers. For this purpose each part means integer and fractional will be converted independently.

### Decimal to Hexadecimal Questions

Some examples are here to understand conversion **from decimal to hexadecimal**

- Convert
`678.723`

into hexadecimal number. - Write down steps for conversion of
`78.97`

into hexadecimal. - What is the equivalent hexadecimal number of decimal
`108.109`

? - How to convert
`440.30`

into hexadecimal? - Find hexadecimal equivalent of
`23.066`

. - Show steps of decimal numbers conversion.
- Write process of hexadecimal to decimal conversion.