Each place is worth double
In the decimal numbers we use every day, places grow tenfold from the right: ones, tens, hundreds. In binary, they double from the right: 1, 2, 4, 8, 16, 32, 64, 128.
37 in binary
Starting from the biggest place, ask “does it fit?” 64 doesn’t fit in 37. 32 fits (5 left). 16 and 8 don’t fit. 4 fits (1 left). 2 doesn’t fit. 1 fits. Write 1 for the places that fit and 0 for the others, and you get 00100101.
8 bits: 0 to 255
One digit that is 0 or 1 is called “1 bit.” With 8 bits (= 1 byte) you can write 00000000 to 11111111 — that is, 256 values from 0 to 255. To write 256 you need one more bit. The “overflow” in the game is exactly this running out of digits.
Binary around you
- Each of the four numbers in an IP address (e.g. 192.168.1.10) is 8 bits, so 0–255
- The web color
#FF8800gives red, green and blue 8 bits (0–255) each
- Binary writes numbers using only 0 and 1
- Place values double from the right: 1, 2, 4, 8…
- 8 bits = 1 byte can represent 0–255