Final answer:
To convert from decimal to hexadecimal, divide the decimal number by 16 and write down the remainders as the hexadecimal digits.
Step-by-step explanation:
To convert from decimal to hexadecimal, follow these steps:
- Divide the decimal number by 16
- Write down the remainder as the least significant digit (rightmost digit)
- Divide the quotient from step 1 by 16 again
- Repeat steps 2 and 3 until the quotient is 0
- Write down the remainders in reverse order to get the hexadecimal representation of the decimal number
For example:
a. To convert 766 to hexadecimal:
766 ÷ 16 = 47 remainder 14 (E)
47 ÷ 16 = 2 remainder 15 (F)
2 ÷ 16 = 0 remainder 2 (2)
So, 766 in decimal is E2 in hexadecimal.
b. To convert 1982.5001 to hexadecimal:
1982 ÷ 16 = 123 remainder 14 (E)
123 ÷ 16 = 7 remainder 11 (B)
7 ÷ 16 = 0 remainder 7 (7)
So, 1982 in decimal is 7BE in hexadecimal.