How to convert
To convert a decimal number to hexadecimal, you can use the division-by-16 method:
- Divide the Decimal Number by 16: Write down the quotient and the remainder.
- Record the Remainder: This will be a hexadecimal digit (0–9 or A–F, where A = 10, B = 11, up to F = 15).
- Repeat the Process: Continue dividing the quotient by 16 until the quotient becomes 0.
- Read the Remainders from Bottom to Top: The hexadecimal representation is obtained by reading the remainders in reverse order.
Lets convert decimal number 100010 to hexadecimal:
1000 / 16 = 62 (remainder 8)
62 / 16 = 3 (remainder 14, which is represented by E in hex)
3 / 16 = 0 (remainder 3)
Write down the remainders in reverse order: 3E816