What is Decimal?
Decimal is our everyday number system. It uses ten digits 0 to 9.
What is Hexadecimal?
Hexadecimal (hex) is a base-16 number system. It uses 16 symbols 0-9 and A-F (A=10, B=11, C=12, D=13, E=14, F=15).
How to Convert Decimal to Hexadecimal
- Divide the decimal number by 16
- Note the remainder (0-15)
- Divide the result by 16 again
- Repeat until the result is 0
- Read the remainders from bottom to top, using A-F for 10-15
This Is How To Convert 2748 to Hex
Division | Result | Remainder | Hex Digit |
---|---|---|---|
2748 ÷ 16 = 171 | 171 | 12 | C |
171 ÷ 16 = 10 | 10 | 11 | B |
10 ÷ 16 = 0 | 0 | 10 | A |
Reading from bottom to top 2748 in decimal = ABC in hexadecimal
Another Example: 3855 to Hex
3855 ÷ 16 = 240 remainder 15 (F)
240 ÷ 16 = 15 remainder 0
15 ÷ 16 = 0 remainder 15 (F)
Reading from bottom to top: 3855 in decimal = F0F in hexadecimal
Conversion Table
Decimal | Hexadecimal | Binary |
---|---|---|
0 | 0 | 0000 |
1 | 1 | 0001 |
2 | 2 | 0010 |
3 | 3 | 0011 |
4 | 4 | 0100 |
5 | 5 | 0101 |
6 | 6 | 0110 |
7 | 7 | 0111 |
8 | 8 | 1000 |
9 | 9 | 1001 |
10 | A | 1010 |
11 | B | 1011 |
12 | C | 1100 |
13 | D | 1101 |
14 | E | 1110 |
15 | F | 1111 |