1.11 Metric Units

To avoid any confusion, it is worth stating explicitly that in this book, as in computer science in general, metric units are used instead of traditional English units (the furlong-stone-fortnight system). The principal metric prefixes are listed in Fig. 1-31. The prefixes are typically abbreviated by their first letters, with the units greater than 1 capitalized. Thus a 1-TB database occupies 1012 bytes of storage and a 100-psec (or 100-ps) clock ticks every 1010 seconds. Since milli and micro both begin with the letter ‘‘m,’’ a choice had to be made. Normally, ‘‘m’’ is for milli and ‘‘µ’’ (the Greek letter mu) is for micro.

Figure 1-31

Exp.ExplicitPrefixExp.ExplicitPrefix
10-30.001milli1031,000Kilo
10-60.000001micro1061,000,000Mega
10-90.000000001nano1091,000,000,000Giga
10-120.000000000001pico10121,000,000,000,000Tera
10-150.000000000000001femto10151,000,000,000,000,000Peta
10-180.000000000000000001atto10181,000,000,000,000,000,000Exa
10-210.000000000000000000001zepto10211,000,000,000,000,000,000,000Zetta
10-240.000000000000000000000001yocto10241,000,000,000,000,000,000,000,000Yotta

The principal metric prefixes.

It is also worth pointing out that, in common industry practice, the units for measuring memory sizes have slightly different meanings. There kilo means 210 (1024) rather than 103 (1000) because memories are always a power of two. Thus a 1-KB memory contains 1024 bytes, not 1000 bytes. Similarly, a 1-MB memory contains 220 (1,048,576) bytes and a 1-GB memory contains 230 (1,073,741,824) bytes. However, a 1-Kbps communication line transmits 1000 bits per second and a 1-Gbps LAN runs at 1,000,000,000 bits/sec because these speeds are not powers of two. Unfortunately, many people tend to mix up these two systems, especially for SSD or disk sizes. To avoid ambiguity, in this book, we will use the symbols KB, MB, and GB for 210, 220, and 230 bytes, respectively, and the symbols Kbps, Mbps, and Gbps for 103, 106, and 109 bits/sec, respectively.