Decimal to hex
This converter can convert decimal numbers to hexadecimal numbers very quickly, both negative and floating-point numbers are supported for conversion. At the same time, you can also choose any conversion between binary to base 36. Hexadecimal to decimal converter
Base(default decimal) | |
Decimal number | |
Target base(default hex) | |
Conversion result |
Knowledge of converter
In mathematics and computing, hexadecimal (also base 16, or hex) is a positional numeral system with a radix, or base, of 16. It uses sixteen distinct symbols, most often the symbols 0–9 to represent values zero to nine, and A–F (or alternatively a–f) to represent values ten to fifteen.
In the decimal system each decimal place is a power of ten. For example:
8510 = 8 x 101 + 5x 100
In the hex system each place is a power of 16. For example:
21616 = 2 x 162 + 1x 161+ 6x 160
How to convert decimal to hexadecimal
- Divide the number by 16.
- Get the integer quotient for the next iteration.
- Get the remainder for the hex digit.
- Repeat the steps until the quotient is equal to 0.
Example
Convert 823610 to hexadecimal:
Division by 16 | Quotient | Remainder | Bit # |
---|---|---|---|
8236/16 | 514 | c | 0 |
514/16 | 32 | 2 | 1 |
32/16 | 2 | 0 | 2 |
2/16 | 0 | 2 | 3 |
So 823610 = 202c16
Decimal to hex conversion table
Decimal Number | Hex Number |
---|---|
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 |
16 | 10 |
17 | 11 |
18 | 12 |
19 | 13 |
20 | 14 |
50 | 32 |
100 | 64 |
500 | 1f4 |
1000 | 3e8 |