To convert a decimal number to hexadecimal (hex), follow these steps:
How to convert Binary to Hex | How to convert Decimal to fraction
Example 1 – Convert 756210 to hex
Division by 16 | Quotient | Remainder (decimal) | Remainder (hex) | Digit # |
7562/16 | 472 | 10 | A | 0 |
472/16 | 29 | 8 | 8 | 1 |
29/16 | 1 | 13 | D | 2 |
1/16 | 0 | 1 | 1 | 3 |
So, 756210 = 1D8A16
Example 2 – Convert 3563110 to hex
Division by 16 | Quotient | Remainder (decimal) | Remainder (hex) | Digit # |
35631/16 | 2226 | 15 | F | 0 |
2226/16 | 139 | 2 | 2 | 1 |
139/16 | 8 | 12 | B | 2 |
8/16 | 0 | 8 | 8 | 3 |
So, 3563110 = 8B2F16
Most scientific calculators have a dedicated mode for hexadecimal conversion. Look for a Hex mode or a specific button labeled Hex. Enter the decimal value, switch to Hex mode, and the calculator will display the hexadecimal equivalent.
The formula to convert a hexadecimal number to decimal is to multiply each digit of the hexadecimal number by 16 raised to the power of its position (0-based from right to left) and then summing up these products. For example, the hexadecimal number 1A can be converted to decimal as follows: 1 * 16^1 + 10 * 16^0 = 26
To convert hex to decimal, you can use the formula mentioned in Q4 or you can use a table that maps hex digits to their decimal equivalents. Multiply each hex digit by the corresponding value from the table and then add them up.
To convert a decimal value to a hexadecimal value, divide the decimal number by 16 repeatedly, noting down the remainders at each step. The sequence of remainders, read in reverse order, forms the hexadecimal representation.
Hexadecimal is a base-16 number system. Each digit in a hexadecimal number represents a power of 16. To calculate the decimal equivalent of a hex number, multiply each hex digit by 16 raised to the power of its position and then sum the products. The leftmost digit has a position of 0, and the positions increase as you move to the right.