Humans count in decimal, but computers count in binary. How does that work?
A recap of decimal
If you’re really ancient like me, you may remember a long obsolete technology known as “cassette tape”. You may even have seem an actual cassette player. And you may have noticed that they typically have a 3-digit revolution counter. For… some reason. (I think the idea is to allow you to fast-forward or rewind to specific points on the tape… except they’re way too inaccurate for that!) Older gas and electricity meters have a similar mechanism.
The way the counter works is quite simple. There are some number of plastic wheels, with the numbers from 0 to 9 printed on them. You zero the counter, so each wheel shows 0. And then the first wheel slowly rotates around, giving you 000, 001, 002, and so on. Eventually, the first wheel reaches 9. As the wheel continues to turn, it rolls back to 0 again. But a notch on the wheel causes the next wheel along to also rotate round one place, so instead of 009 being followed by 000 again, what actaully happens is 009 is followed by 010.
Continue reading “Learn to count like a computer”