While we convert numbers based on a decimal system, computers use a binary system, understanding ons and offs as numbers.
Decimal (base ten): If you add one to nine, you have to carry, and you get ten.
Binary (base two): If you add one to one in binary, you have to carry, and you get ten.
Binary conversion works with liquid measurement: one cup + one cup = one pint; one pint + one pint = one quart; one quart + one quart = one half gallon. Think of one cup as 1, two cups (a pint) as 10, three cups (a pint and a cup) as 11, four cups (one quart) as 100, and so on.
Easy enough. What if you had a byte of information to convert, though, something that looked like this?
Obligatory number system description off.
It's time to bring out the Post-its and Popsicle sticks.
Step 1: Tools and Materials
Glue or glue stick
Highlighter (or any marker that doesn't bleed through the notes)
Step 2: Make Your Ones and Zeros Flip
I liked constructing it this way because it reminded me of those old digital flip clocks.
Step 3: Line Up Your Binary Numbers
Step 4: Line Up Your Decimal Numbers
- 20 = 1
- 21 = 2
- 22 = 4
- 23 = 8
- 24 = 16
- 25 = 32
- 26 = 64
- 27 = 128
Step 5: Make 'em Flip
Step 6: Start Converting
Add all the decimal numbers on the right. You can use a note on the bottom to do your sums.
So what about that number: 10101010?
That's 128 + 32 + 8 + 2.
Binary 10101010 = decimal 170.
Have fun flipping.
Step 7: Variations, Improvisations, and Meditations
Coffee stirrers actually work much better than Popsicle sticks. As you can see, I wrote a note at the top. What kind of notes would you write? Would you put a white board or black board at the bottom? How would the flipping converter work four bits at a time? What would an octal or hexadecimal converter look like?