135k views
2 votes
Convert from decimal to hex:
a. 766
b. 1982.5001

User Sixtease
by
8.1k points

1 Answer

3 votes

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:

  1. Divide the decimal number by 16
  2. Write down the remainder as the least significant digit (rightmost digit)
  3. Divide the quotient from step 1 by 16 again
  4. Repeat steps 2 and 3 until the quotient is 0
  5. 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.

User Aeubanks
by
8.3k points