Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

1Learning Outcomes

It is unwieldy to use numbers like 4,294,967,296 to describe the 232 bytes of address space on 32-bit architectures. Instead, we much prefer terminology like 2 GiB (“gibibytes”).

This short reference introduces prefixes for numbers in powers of ten and two This terminology helps us describe quantites, from sizes of caches and hard drives to network transmission rates.

1.1Base-10 Prefixes

We will find it very convenient to use prefixes like “kilo”, “giga”, etc. to refer to large base-10 numbers. Table 1 describes the base-10 prefixes commonly used in this class.

Table 1:Base-10 prefixes for numbers.

PrefixAbbreviationPowerValue
KiloK1031,000
MegaM1061,000,000
GigaG1091,000,000,000
TeraT10121,000,000,000,000
PetaP10151,000,000,000,000,000
ExaE10181,000,000,000,000,000,000
ZettaZ10211,000,000,000,000,000,000,000
YottaY10241,000,000,000,000,000,000,000,000

The abbreviations are then used as prefixes to units: 4 KB (four kilobytes), 10 Mbps (ten megabits per second), etc.

These “Common-use prefixes” are close to those used by SI (the International System of Units), with the exception of “kilo” (which is lowercase “k” in SI but uppercase “K” in computing).

2Binary prefixes

The IEC (International Electrotechnical Commission) defined binary prefixes like “kibi”, “mebi”, etc., to describe large binary numbers. Table 2 describes the binary prefixes commonly used in this class.

Table 2:Binary (IEC) prefixes for numbers.

PrefixAbbreviationPowerNumeric Value
KibiKi2101,024
MebiMi2201,048,576
GibiGi2301,073,741,824
TebiTi2401,099,511,627,776
PebiPi2501,125,899,906,842,624
ExbiEi2601,152,921,504,606,846,976
ZebiZi2701,180,591,620,717,411,303,424
YobiYi2801,208,925,819,614,629,174,706,176

Like before, abbreviations can be used as prefixes to units: 4 GiB (four gibi-bytes, pronounced “ghee-bee”). The “bi” in each prefix likely stands for binary but is pronounced “bee.”

3Get familiar with conversions

At small numbers, base-two and base-ten are comparable because one thousand (kilo, 103) is close to 1,024 (kibi, 210). This 2.4% difference compounds exponentially, with the binary prefix always indicating larger numbers than its base-ten counterpart.[1].

In any case, to remember which binary prefixes correspond to which base-ten prefixes, we recommend remembering the approximation:

2101032^{10} \approx 10^3

Knowing your prefix conversions helps identify the amount of memory or storage you will need for a particular application.

4Mnemonics

You should become very familiar with both base-10 and binary prefixes. Here are some mnemonics, courtesy of previous students and instructors:

5Which to use?

Base-10 prefixes are often used by hard disk manufacturers & telecommunications. For example, a Mbit/s connection transfers 106 bits per second.

Binary prefixes are often used for RAM and Caches because they are conceptually closer to the architecture.

Operating Systems alternate between the two but seem to have settled on base-10.

Aside: Remember, base-10 numbers are smaller than their binary counterparts, e.g., 1TB is about 90% of 1TiB. This numeric difference has been the subject of numerous lawsuits against storage manufacturers accusing them of false advertising, among other things.

In this course, we will specify numbers with the abbreviations in Table 1 and Table 2.

Footnotes