# Thread: Conversion from decimal to hexadecimal

1. ## Conversion from decimal to hexadecimal

How do I convert 2,000 from decimal to hexadecimal?

2. ## Re: Conversion from decimal to hexadecimal

Originally Posted by Civy71
How do I convert 2,000 from decimal to hexadecimal?
USE THE WEB. See this webpage.

3. ## Re: Conversion from decimal to hexadecimal

Originally Posted by Civy71
How do I convert 2,000 from decimal to hexadecimal?
It helps if you think of the columns in your hexadecimal number as powers of 16, so your first digit will represent how many lots of \displaystyle \begin{align*} 16^0 \end{align*}, the second digit will represent how many lots of \displaystyle \begin{align*} 16^1 \end{align*}, the third digit will represent how many lots of \displaystyle \begin{align*} 16^2 \end{align*}, etc. Notice that \displaystyle \begin{align*} 16^2 = 256 \end{align*} and \displaystyle \begin{align*} 16^3 = 4069 \end{align*}, so that means in hexadecimal your number can only have three digits.

Now notice that \displaystyle \begin{align*} \frac{2000}{16^2} = 7\,\frac{208}{16^2} \end{align*}, so your \displaystyle \begin{align*} 16^2 \end{align*} digit is \displaystyle \begin{align*} 7 \end{align*}. You are left with \displaystyle \begin{align*} 208 \end{align*}.

Now notice that \displaystyle \begin{align*} \frac{208}{16} = 13 \end{align*}, so your \displaystyle \begin{align*} 16^1 \end{align*} digit will have to be a \displaystyle \begin{align*} d \end{align*} (which is the 13th digit).

Since there is no remainder, your \displaystyle \begin{align*} 16^0 \end{align*} term has to be \displaystyle \begin{align*} 0 \end{align*}.

Therefore \displaystyle \begin{align*} 2000_{10} = 7d0_{16} \end{align*}.

5. ## Re: Conversion from decimal to hexadecimal

below he shoe all the conversion of decimal to hexadecimal. i am also confusing about this problem thanks for solving......

6. ## Re: Conversion from decimal to hexadecimal

16^3 = 4096, which is too big

16^2 = 256, which is smaller than 2000, so divide 2000 by 256

7. ## Re: Conversion from decimal to hexadecimal

Originally Posted by Julian21
16^3 = 4096, which is too big

16^2 = 256, which is smaller than 2000, so divide 2000 by 256
Is this not exactly what I posted in my previous post?

8. ## Re: Conversion from decimal to hexadecimal

16 divides into 2600 121 times with remainder 0. That means that 2600= 121(16)+ 0.
16 divides into 121 7 times with remainder 9. That means that 121= 7(16)+ 9.

Putting those together 2600= (7(16)+ 9)(16)+ 0= 7(16)^2+ 9(16)+ 0 so 2600 base 10 is 790 base 16.

9. ## Re: Conversion from decimal to hexadecimal

Originally Posted by HallsofIvy
16 divides into 2600 121 times with remainder 0. That means that 2600= 121(16)+ 0.
16 divides into 121 7 times with remainder 9. That means that 121= 7(16)+ 9.

Putting those together 2600= (7(16)+ 9)(16)+ 0= 7(16)^2+ 9(16)+ 0 so 2600 base 10 is 790 base 16.
I'm not sure why you posted this, the number the OP was trying to convert was 2000, not 2600...

Also, your answer can not possibly be right, as 2000 in hexadecimal is 7d0, and 2600 is greater than this, yet you have gotten 790 in hexadecimal which is smaller...

10. ## Re: Conversion from decimal to hexadecimal

Hello, Civy71!

How do I convert 2,000 from decimal to hexadecimal?

There is an algorithm which no one has mentioned.

[1] Divide the number by the base. .Note the quotient and remainder.

[2] Divide the quotient by the base. .Note the quotient and remainder.

[3] Repeat step [2] until the zero quotient is attained.

[4] Read up the remainders.

. . $\begin{array}{cccccc} 2000 \div 16 &=& 125 & \text{rem. }0 \\ 125 \div 16 &=& 7 & \text{rem. }13 \\ 7 \div 16 &=& 0 & \text{rem. }7 \end{array}\begin{array}{c}\uparrow \\ \uparrow \end{array}$

Therefore: . $2000_{10} \;=\;7D0_{16}$

11. ## Re: Conversion from decimal to hexadecimal

Originally Posted by Prove It
I'm not sure why you posted this, the number the OP was trying to convert was 2000, not 2600...

Also, your answer can not possibly be right, as 2000 in hexadecimal is 7d0, and 2600 is greater than this, yet you have gotten 790 in hexadecimal which is smaller...
One of these days, I really need to learn arithmetic!