
Return to Unit Menu  JavaBitsNotebook.com  MathBits.com  Terms
of Use  JavaMathBits.com
Change a number
from base 10
to any other base:
Let's
see if we can convert some numbers from one base to another. There
are many ways to work with number base conversions. We will be
discussing only one method. Please feel free to use any conversion
system with which you are comfortable.
Don't panic! Yes, it is math. But you can do it! 

Example 1: Convert 5_{10} (read "5 base 10") into base 2.

The Process: 
1. 
Divide the "desired" base (in this case base 2) INTO the number
you are trying to convert. 
2. 
Write the quotient (the answer) with a remainder like you did in
elementary school. 
3. 
Repeat this division process using the whole number from the previous quotient (the number in front of the remainder). 
4. 
Continue repeating this division until the number in front of
the remainder is only zero. 
5. 
The answer is the remainders read from the bottom up. 
5_{10} =
101_{2} (a binary conversion) 
Example 2: Convert 140_{10} to base 8.

The process is the same as in example 1.
The
answer is:
140_{10} = 214_{8}
(an octal conversion) 
Example 3: Convert 110_{10} to base 16.

The process remains the same. BUT there is one
problem in base 16 that did not appear in the examples above. One
of the remainders in this division contains 2 digits (14). You
CANNOT allow 2 digits to reside in one of the place holdings in a
number. For this reason, base 16, which can have six 2digit
remainders (10, 11, 12, 13, 14, 15), replaces these values with
alphabetic representations (10A, 11B, 12C, 13D, 14E, 15F).
The answer is:
110_{10 } = 6E_{16}
(a hexadecimal
conversion) 
Return to Unit Menu  JavaBitsNotebook.com  MathBits.com  Terms
of Use  JavaMathBits.com
Notice: These materials are free for your online use at this site, but are not free for the taking.
Please do not copy these
materials or repost them to the Internet, as it is copyright infringement.
If you wish hardcopies of these materials, refer to our subscription area, JavaMathBits.com.
Help us keep these resources free. Thank you. 
