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

14y ago

Still curious? Ask our experts.

Chat with our AI personalities

RossRoss
Every question is just a happy little opportunity.
Chat with Ross
ViviVivi
Your ride-or-die bestie who's seen you through every high and low.
Chat with Vivi
EzraEzra
Faith is not about having all the answers, but learning to ask the right questions.
Chat with Ezra

Add your answer:

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