What is binary?
Humans count using 10 digits (0–9). This is called denary (base 10). Computers count using only 2 digits: 0 and 1. This is called binary (base 2). Each 0 or 1 is called a bit.
In binary, each column is worth double the column to its right. To convert binary to denary, add up the column values where there is a 1.
Binary addition
Binary addition uses 4 simple rules:
0 + 0 = 00 + 1 = 11 + 1 = 10(write 0, carry 1)1 + 1 + 1 = 11(write 1, carry 1)
Binary shifting
Shifting is a fast way to multiply or divide by 2.
- Shift LEFT by 1 place → multiply by 2
- Shift RIGHT by 1 place → divide by 2
- Shifting left by 2 places multiplies by 4. By 3 places multiplies by 8.