answersLogoWhite

0

To convert a number from decimal to any other base:

  1. divide the number by the new base to get a result and remainder
  2. note the remainder
  3. if the result is zero go to step 5
  4. replace the number by the result and repeat from step 1
  5. write the remainders in reverse order (of obtaining them) to get the answer

eg convert 123456 to hexadecimal (base 16):

1. 123456 ÷ 16 = 7716 remainder 0

2. remainder is 0

3. result 7716 is not 0

4. make number 7716

1. 7716 ÷ 16 = 482 remainder 4

2. remainder is 4

3. result 482 is not zero

4. make number 482

1. 482 ÷ 16 = 30 remainder 2

2. remainder is 2

3. result 30 is not zero

4. make number 30

1. 30 ÷ 16 = 1 remainder 14

2. remainder is 14

3. result 1 is not zero

4. make number 1

1. 1 ÷ 16 = 0 remainder 1

2. remainder is 1

3. result is zero

5. answer is 1e240 (using letter e to represent hex digit equivalent of decimal 14)

12345610 = 1e24016

User Avatar

Wiki User

13y ago

Still curious? Ask our experts.

Chat with our AI personalities

FranFran
I've made my fair share of mistakes, and if I can help you avoid a few, I'd sure like to try.
Chat with Fran
LaoLao
The path is yours to walk; I am only here to hold up a mirror.
Chat with Lao
BlakeBlake
As your older brother, I've been where you are—maybe not exactly, but close enough.
Chat with Blake

Add your answer:

Earn +20 pts
Q: Decimal to hexadecimal
Write your answer...
Submit
Still have questions?
magnify glass
imp