s3.2.1
Converting Integers
1,000 questions
This section covers the two main processes for converting integers between bases.
Base-n to Base-10: To convert a number from base-n to base-10, you expand it as a sum of powers of n. For example, .
Base-10 to Base-n: To convert from base-10 to base-n, you repeatedly divide the number by the highest possible power of n, recording the quotient as a digit and using the remainder for the next step with the next lower power of n. For example, to convert to base-6, the highest power of 6 that divides it is . with a remainder of 15. The next digit is with a remainder of 3. The last digit is . So, .