Section: Linux Programmer's Manual (7)

Updated: 2012-08-05

Index?action=index Return to Main Contents


units, kilo, kibi, mega, mebi, giga, gibi - decimal and binary prefixes


Decimal prefixes

The SI system of units uses prefixes that indicate powers of ten. A kilometer is 1000 meter, and a megawatt is 1000000 watt. Below the standard prefixes.

:<TABLE> <TR VALIGN="top| <TD>Prefix</TD> <TD>Name</TD> <TD>Value

</TD> </TR> <TR VALIGN="top| <TD>y</TD> <TD>yocto</TD> <TD>10^-24 = 0.000000000000000000000001

</TD> </TR> <TR VALIGN="top| <TD>z</TD> <TD>zepto</TD> <TD>10^-21 = 0.000000000000000000001

</TD> </TR> <TR VALIGN="top| <TD>a</TD> <TD>atto</TD> <TD>10^-18 = 0.000000000000000001

</TD> </TR> <TR VALIGN="top| <TD>f</TD> <TD>femto</TD> <TD>10^-15 = 0.000000000000001

</TD> </TR> <TR VALIGN="top| <TD>p</TD> <TD>pico</TD> <TD>10^-12 = 0.000000000001

</TD> </TR> <TR VALIGN="top| <TD>n</TD> <TD>nano</TD> <TD>10^-9 = 0.000000001

</TD> </TR> <TR VALIGN="top| <TD>µ</TD> <TD>micro</TD> <TD>10^-6 = 0.000001

</TD> </TR> <TR VALIGN="top| <TD>m</TD> <TD>milli</TD> <TD>10^-3 = 0.001

</TD> </TR> <TR VALIGN="top| <TD>c</TD> <TD>centi</TD> <TD>10^-2 = 0.01

</TD> </TR> <TR VALIGN="top| <TD>d</TD> <TD>deci</TD> <TD>10^-1 = 0.1

</TD> </TR> <TR VALIGN="top| <TD>da</TD> <TD>deka</TD> <TD>10^ 1 = 10

</TD> </TR> <TR VALIGN="top| <TD>h</TD> <TD>hecto</TD> <TD>10^ 2 = 100

</TD> </TR> <TR VALIGN="top| <TD>k</TD> <TD>kilo</TD> <TD>10^ 3 = 1000

</TD> </TR> <TR VALIGN="top| <TD>M</TD> <TD>mega</TD> <TD>10^ 6 = 1000000

</TD> </TR> <TR VALIGN="top| <TD>G</TD> <TD>giga</TD> <TD>10^ 9 = 1000000000

</TD> </TR> <TR VALIGN="top| <TD>T</TD> <TD>tera</TD> <TD>10^12 = 1000000000000

</TD> </TR> <TR VALIGN="top| <TD>P</TD> <TD>peta</TD> <TD>10^15 = 1000000000000000

</TD> </TR> <TR VALIGN="top| <TD>E</TD> <TD>exa</TD> <TD>10^18 = 1000000000000000000

</TD> </TR> <TR VALIGN="top| <TD>Z</TD> <TD>zetta</TD> <TD>10^21 = 1000000000000000000000

</TD> </TR> <TR VALIGN="top| <TD>Y</TD> <TD>yotta</TD> <TD>10^24 = 1000000000000000000000000

</TD> </TR> </TABLE> :

The symbol for micro is the Greek letter mu, often written u in an ASCII context where this Greek letter is not available. See also

Binary prefixes

The binary prefixes resemble the decimal ones, but have an additional 'i' (and "Ki" starts with a capital 'K'). The names are formed by taking the first syllable of the names of the decimal prefix with roughly the same size, followed by "bi" for "binary".

:<TABLE> <TR VALIGN="top| <TD>Prefix</TD> <TD>Name</TD> <TD>Value

</TD> </TR> <TR VALIGN="top| <TD>Ki</TD> <TD>kibi</TD> <TD>2^10 = 1024

</TD> </TR> <TR VALIGN="top| <TD>Mi</TD> <TD>mebi</TD> <TD>2^20 = 1048576

</TD> </TR> <TR VALIGN="top| <TD>Gi</TD> <TD>gibi</TD> <TD>2^30 = 1073741824

</TD> </TR> <TR VALIGN="top| <TD>Ti</TD> <TD>tebi</TD> <TD>2^40 = 1099511627776

</TD> </TR> <TR VALIGN="top| <TD>Pi</TD> <TD>pebi</TD> <TD>2^50 = 1125899906842624

</TD> </TR> <TR VALIGN="top| <TD>Ei</TD> <TD>exbi</TD> <TD>2^60 = 1152921504606846976

</TD> </TR> </TABLE> :

See also


Before these binary prefixes were introduced, it was fairly common to use k=1000 and K=1024, just like b=bit, B=byte. Unfortunately, the M is capital already, and cannot be capitalized to indicate binary-ness.

At first that didn't matter too much, since memory modules and disks came in sizes that were powers of two, so everyone knew that in such contexts "kilobyte" and "megabyte" meant 1024 and 1048576 bytes, respectively. What originally was a sloppy use of the prefixes "kilo" and "mega" started to become regarded as the "real true meaning" when computers were involved. But then disk technology changed, and disk sizes became arbitrary numbers. After a period of uncertainty all disk manufacturers settled on the standard, namely k=1000, M=1000k, G=1000M.

The situation was messy: in the 14k4 modems, k=1000; in the 1.44MB diskettes, M=1024000; and so on. In 1998 the IEC approved the standard that defines the binary prefixes given above, enabling people to be precise and unambiguous.

Thus, today, MB = 1000000B and MiB = 1048576B.

In the free software world programs are slowly being changed to conform. When the Linux kernel boots and says

the MB are megabytes and the KiB are kibibytes.


This page is part of release 3.74 of the Linux man-pages project. A description of the project, information about reporting bugs, and the latest version of this page, can be found at




Decimal prefixes

Binary prefixes