Kilobyte

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by Jeh (talk | contribs) at 02:30, 4 May 2017 (Undid revision 778500618 by Mwandingimax (talk) was correct before. The lower-case k is supposed to mean 1000. See, it's smaller than the K that means 1024). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Multiple-byte units
Decimal
Value Metric
1000 103 kB kilobyte
10002 106 MB megabyte
10003 109 GB gigabyte
10004 1012 TB terabyte
10005 1015 PB petabyte
10006 1018 EB exabyte
10007 1021 ZB zettabyte
10008 1024 YB yottabyte
10009 1027 RB ronnabyte
100010 1030 QB quettabyte
Binary
Value IEC Memory
1024 210 KiB kibibyte KB kilobyte
10242 220 MiB mebibyte MB megabyte
10243 230 GiB gibibyte GB gigabyte
10244 240 TiB tebibyte TB terabyte
10245 250 PiB pebibyte
10246 260 EiB exbibyte
10247 270 ZiB zebibyte
10248 280 YiB yobibyte
10249 290
102410 2100
Orders of magnitude of data

The kilobyte is a multiple of the unit byte for digital information. The International System of Units (SI) defines the prefix kilo as 1000 (103); therefore one kilobyte is 1000 bytes.[1] The unit symbol for the kilobyte is kB. In information technology, particularly in reference to main memory capacity, kilobyte is traditionally used to denote 1024 (210) bytes. This arises from the powers-of-two sizing common to such memory in digital circuitry. In this context, the symbols K and KB are often used when 1024 bytes is meant.

Definitions and usage

1000 bytes

In the International System of Units (SI) the prefix kilo means 1000 (103); therefore, one kilobyte is 1000 bytes. The unit symbol is kB.

This is the definition recommended by the International Electrotechnical Commission (IEC).[2] This definition, and related definitions of prefixes mega- = 1000000, giga- = 1000000000, etc., are used for data transfer rates[3] in computer networks, internal bus, hard drive and flash media transfer speeds, and for the capacities of most storage media, particularly hard drives,[4] flash-based storage,[5] and DVDs. It is also consistent with the other uses of the SI prefixes in computing, such as CPU clock speeds or measures of performance.

The Mac OS X 10.6 file manager is a notable example of this usage in software. Since Snow Leopard, file sizes are reported with decimal prefixes.[6]

1024 bytes

The kilobyte also often refers to 1024 (210) bytes.[7][8][9] The usage of the metric prefix kilo for binary multiples arose as a convenience, because 1000 approximates 1024.[10]

The binary interpretation of metric prefixes is still prominently used by the Microsoft Windows operating system,[11] which is used on 90% of the world's personal computers.[12] They are also used for random-access memory capacities, such as main memory and CPU cache sizes, due to the binary addressing of memory.[a]

It is also used in marketing and billing by some telecommunication companies, such as Vodafone,[13] AT&T,[14] Orange[15] and Telstra.[16]

The binary representation of 1024 bytes typically uses the symbol KB (uppercase K). The B is often omitted in informal use. For example, a processor with 65,536 bytes of cache might be said to have "64K" of cache.

Kibibyte

In December 1998, the IEC addressed such multiple usages and definitions by creating prefixes such as kibi, mebi, gibi, etc., to unambiguously denote powers of 1024.[17] Thus the kibibyte, symbol KiB, represents 210 = 1024 bytes. These prefixes are now part of the International System of Quantities. The IEC further specified that the kilobyte should only be used to refer to 1000 bytes. In practice, kilobyte is still commonly used to refer to 1024 bytes.

Examples

  • The Shugart SA-400 514-inch floppy disk (1976) held 109,375 bytes unformatted,[18] and was advertised as 110 Kbyte, using the 1000 convention.[19] Likewise, the 8-inch DEC RX01 floppy (1975) held 256,256 bytes formatted, and was advertised as 256k.[20] On the other hand, the Tandon 514-inch DD floppy format (1978) held 368,640 (which is 360×1024) bytes, but was advertised as 360 KB, following the 1024 convention.
  • On modern systems, all versions of Microsoft Windows including the newest (as of 2015) Windows 10 divide by 1024 and represent a 65,536-byte file as 64 KB.[21] Conversely, Mac OS X Snow Leopard and newer represent this as 66 kB, rounding to the nearest 1000 bytes.[22]

See also

Notes

  1. ^ Exceptions did exist for machines that used decimal addressing, such as the IBM 1401. A "12 K" 1401 has 12,000 characters of memory.

References

  1. ^ International Standard IEC 80000-13 Quantities and Units – Part 13: Information science and technology, International Electrotechnical Commission (2008).
  2. ^ Prefixes for Binary Multiples — The NIST Reference on Constants, Units, and Uncertainty
  3. ^ Conversion of Data Transfer Rate Units
  4. ^ 1977 Disk/Trend Report Rigid Disk Drives, published June 1977
  5. ^ SanDisk USB Flash Drive "Note: 1 megabyte (MB) = 1 million bytes; 1 gigabyte (GB) = 1 billion bytes."
  6. ^ "How Mac OS X reports drive capacity". Apple Inc. 2009-08-27. Retrieved 2009-10-16.
  7. ^ Kilobyte – Definition and More from the Free Merriam-Webster Dictionary. Merriam-webster.com (2010-08-13). Retrieved on 2011-01-07.
  8. ^ Kilobyte | Define Kilobyte at Dictionary.com. Dictionary.reference.com (1995-09-29). Retrieved on 2011-01-07.
  9. ^ Definition of kilobyte from Oxford Dictionaries Online. Askoxford.com. Retrieved on 2011-01-07.
  10. ^ "Prefixes for binary multiples". iec.ch. International Electrotechnical Commission. Retrieved 1 October 2016.
  11. ^ "Determining Actual Disk Size: Why 1.44 MB Should Be 1.40 MB". Support.microsoft.com. 2003-05-06. Retrieved 2014-03-25.
  12. ^ "Operating system market share". www.netmarketshare.com. Retrieved 2016-07-13.
  13. ^ "3G/GPRS data rates". Vodafone Ireland. Retrieved 26 October 2016.
  14. ^ "Data Measurement Scale". AT&T. Retrieved 26 October 2016.
  15. ^ "Internet Mobile Access". Orange Romania. Retrieved 26 October 2016.
  16. ^ "Our Customer Terms" (PDF). Telstra. p. 7. Retrieved 26 October 2016.
  17. ^ National Institute of Standards and Technology. "Prefixes for binary multiples". "In December 1998 the International Electrotechnical Commission (IEC) [...] approved as an IEC International Standard names and symbols for prefixes for binary multiples for use in the fields of data processing and data transmission."
  18. ^ "SA400 minifloppy". Swtpc.com. 2013-08-14. Retrieved 2014-03-25.
  19. ^ http://www.swtpc.com/mholley/SA400/SA400_Datasheet.pdf
  20. ^ http://bitsavers.org/pdf/dec/disc/rx01/EK-RX01-MM-002_maint_Dec76.pdf
  21. ^ "Determining Actual Disk Size: Why 1.44 MB Should Be 1.40 MB". Support.microsoft.com. 2003-05-06. Retrieved 2014-03-25.
  22. ^ "How OS X and iOS report storage capacity". Support.apple.com. 2013-07-01. Retrieved 2014-03-25.