Converting Number Bases — Definition, Formula & Examples
Converting number bases means rewriting a number from one base (like base 10) into another base (like base 2 or base 16) so that both representations have the same value.
A number base (or radix) determines how many distinct digits are used and the place value of each position. Converting from base to base requires expressing the quantity using powers of instead of powers of , while preserving the number's value.
How It Works
Every number base uses place values that are powers of the base. In base 10, the places are , , , and so on. In base 2 (binary), the places are , , , , etc. To convert from base 10 to another base, repeatedly divide by the new base and collect the remainders. To convert from another base to base 10, multiply each digit by its place value and add the results together.
Worked Example
Problem: Convert the decimal number 45 to base 2 (binary).
Step 1: Divide 45 by 2. Record the quotient and remainder.
Step 2: Keep dividing the quotient by 2, recording each remainder.
Step 3: Read the remainders from bottom to top to form the binary number.
Answer: in base 10 equals in base 2. You can verify: .
Why It Matters
Computers store all data in binary (base 2), so understanding base conversion is essential in computer science courses. Programmers also use hexadecimal (base 16) as a compact way to represent binary data, such as color codes in web design.
Common Mistakes
Mistake: Reading the remainders in the wrong order (top to bottom instead of bottom to top).
Correction: The first remainder you find is the ones digit (rightmost). Always read remainders from the last division to the first to get the correct digit order.
