|
Depending on the context in which it is used, the word kilobyte may mean either 1,000 or 1,024 bytes. For general information about the SI and binary prefixes, see binary prefix.
The kilobyte (KB or K)
This is an unofficial unit which means 1,024 bytes. It is used describing storage capacity and memory size of computers (as it is a power of 2, making it easy for computers, which work in binary, to manipulate).
Since 210 = 1024 and 1024 is close to 1000, computer engineers defined the kilobyte to be 1024 bytes, which in binary is 210. Kilobytes is written as "KB", sometimes abbreviated as "K", to differentiate this from the 'borrowed' SI prefix; M (Mega) was interpreted as K×K = 220 (≈ 106), and G (Giga) as K×K×K = 230 (≈ 109).
However, the standard-keepers of the SI dislike the usage of an upper case "B", which stands for bel or "K" which stands for the kelvin, a unit of temperature. In 1998, the IEC decreed to call 1,024 bytes a kibibyte (KiB) — a term which is only slowly catching on. During the transition period, the IEEE suggests using a lower-case "k" for the decimal kilo (1,000) and, if properly pointed out, an upper-case "K" for the binary kilo (1,024), thereby taking the historical development into account. Unfortunately this is not extended to the higher order prefixes and has never been widely recognized.
Some examples:
- The memory size of a later x86 processor PC is 640 KB = 655,360 bytes.
- The maximum size of a DOS program of the *.com variety is 64 KB = 65,536 bytes.
- A 5¼-inch diskette formatted to 720 KB will hold 737,280 bytes of information.
- A hard disk partition of 2.0 GB has a storage capacity of 2,048 MB (or 2,097,152 KB).
Note the distinction between a kilobyte and a kilobit. A kilobit is abbreviated as kbit (preferably) or as kb, and usually means 1,000 bits. "KB" with an upper case B usually refers to the kilobyte. Assuming eight bits to one byte, 1KB = 8Kbit.
In a not-recommended-for-use legacy Unicode system for some East Asian languages, Kilobyte is represented as ㎅.
The kilobyte (kB)
This uses the SI prefix kilo, and simply refers to 1,000 bytes (as a kilometre equals 1,000 metres). This is the notation used by telecommunication engineers.
The clash of two worlds
These two definitions co-existed for nearly two decades with almost nobody complaining. However, with the advent of the home computer in the late 1980s, a lot of people, who had never been involved with computing or programming, were now confronted with these specialized terms.
Storage device manufacturers realized that using the SI conventions resulted in higher nominal figures.
First, there was the case of the 1.44 MB diskette: Formatting a 3½-inch disk with a standard controller yields a storage capacity of 1,440 KB (or 1,474,560 bytes). According to the above, that converts to 1.41 MB (binary); the manufacturers decided to divide by 1,000 instead and arrived at 1.44 MB. Despite this being a misnomer, the label stuck; e.g. there is still a "/f:1.44" command line parameter for the MS-DOS "format".
When moving to hard disk drives, the discrepancy showed even more: In the case of a 2 GB drive with its nominal (decimal) capacity of 2,000,000,000 bytes, after having been built in and formatted, the machine's operating system will 'truthfully' report that it recognized 1.86 GB. While the difference (when using GB) is less than 7%, it becomes more apparent with higher capacity (e.g. with an 80 GB drive, about 5 GB seem to be 'missing', a nasty shock for the un-initiated computer user).
See also
External links
|