Interactive · 2 questions
Binary
Binary might be the second most known number system. Whereas our number system uses digits, binary uses only digits:
"Computers use binary to do things." -Alex on the topic of binary.
From Decimal to Binary
Convert from decimal to binary can be a little tedious. We want to take the number and continuously divide it by rounding down for decimals, and listing the numbers out. Each even number we represent with a and each odd number we represent with
That's a lot of words. Maybe an example will make things clearer. Let's convert (the little means base-) to base-
Start by dividing by until we get down to a

Looking from the bottom number up, we have the numbers: The final step is to put a under the odd numbers and a under the even. So:
From Binary to Decimal
Luckily, going from binary to decimal isn't as difficult. Starting from the last number, we want to multiply each digit by raised to increasing powers (starting from and moving up). We then add all these up.
Let's see it in action with our newly converted base- number,
So:
Practice
Now that you're basically a glorified computer, try some out on your own.
What is in binary?
Solution
We want to divide by rounding down, until we reach
Next, put a for the odd numbers and a for the even numbers.
Write this number from bottom up.
What is in decimal?
Solution
When going from binary to decimal, we want to multiply each digit by a power of We start with the last digit and multiply it by raised to the zero power.
So,
