CIE AS & A Level Computer Science, section 1.1 (Data representation)
Two systems of prefixes
Computers store data in binary, so quantities of memory are often powers of 2. Everyday units such as the kilobyte were originally used for both meanings, which caused confusion. Today there are two separate sets of prefixes.
| Decimal prefix | Value | Binary prefix | Value |
|---|---|---|---|
| kilo (k) | = 1 000 | kibi (Ki) | = 1 024 |
| mega (M) | = 1 000 000 | mebi (Mi) | = 1 048 576 |
| giga (G) | gibi (Gi) | = 1 073 741 824 | |
| tera (T) | tebi (Ti) | = 1 099 511 627 776 |
So 1 kB (kilobyte) is 1000 bytes, and 1 KiB (kibibyte) is 1024 bytes.
Why the difference matters
- Storage manufacturers use the decimal prefixes (a "500 GB" drive holds 500 000 000 000 bytes).
- Operating systems often report sizes in binary units, so the same drive appears smaller.
Converting
- To go from a binary unit to the next smaller unit, multiply by 1024.
- To go to the next larger unit, divide by 1024.
Worked example
How many bytes are there in 2 GiB?
How many MiB is that? MiB.
Common mistake: using 1000 when the question uses a binary prefix. If the question says kibibyte, mebibyte or gibibyte, multiply by 1024 each time. If it says kilobyte or megabyte, check whether the question is using the decimal meaning.
Exam tip: show the multiplication step by step ( for each step up the units). If a calculation gives a different answer from the unit shown by a computer, say the difference is due to decimal and binary prefixes.
Check yourself
How many bytes are in 1 MiB?
.
Which prefix means ?
Gibi (Gi).
Why does a "1 TB" drive show as about 931 GiB in an operating system?
The drive is sold using decimal prefixes ( bytes), but the operating system displays binary units: GiB.