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 Topic Menu 
Computer Science Main Page 
MathBits.com 
Terms of Use
