Why computers count in ones and zeros, and how bits become gigabytes.
A computer stores everything as bits: a 1 (voltage on) or a 0 (voltage off). Eight bits make a byte, which can hold 256 different values (0 to 255).
| Bit position | 128 | 64 | 32 | 16 | 8 | 4 | 2 | 1 |
|---|---|---|---|---|---|---|---|---|
| Binary 1101 0110 | 1 | 1 | 0 | 1 | 0 | 1 | 1 | 0 |
Add the place values where there is a 1: 128 + 64 + 16 + 4 + 2 = 214.
Hexadecimal (base 16) uses 0 to 9 and A to F. One hex digit equals four bits, so a byte is always two hex digits: 1101 0110 = D6. You will see hex in MAC addresses, colour codes and error codes.
Units| Unit | Size | Roughly holds |
|---|---|---|
| Byte (B) | 8 bits | One character |
| Kilobyte (KB) | 1 024 bytes | A short email |
| Megabyte (MB) | 1 024 KB | A song or a photo |
| Gigabyte (GB) | 1 024 MB | A full-length film |
| Terabyte (TB) | 1 024 GB | About 250 000 photos |
Tap a term on the left, then its meaning on the right. 5 pairs to go
What is binary 0000 1010 in decimal?