Kilobyte

From HandWiki
Revision as of 23:35, 6 February 2024 by WikiEd2 (talk | contribs) (fixing)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Short description: Multiple of the unit byte
v · d · e
Multiples of bytes
Decimal
Value Metric
1000 kB kilobyte
10002 MB megabyte
10003 GB gigabyte
10004 TB terabyte
10005 PB petabyte
10006 EB exabyte
10007 ZB zettabyte
10008 YB yottabyte
Binary
Value IEC JEDEC
1024 KiB kibibyte KB kilobyte
10242 MiB mebibyte MB megabyte
10243 GiB gibibyte GB gigabyte
10244 TiB tebibyte
10245 PiB pebibyte
10246 EiB exbibyte
10247 ZiB zebibyte
10248 YiB yobibyte

The kilobyte is a multiple of the unit byte for digital information. The International System of Units (SI) defines the prefix kilo as a multiplication factor of 1000 (103); therefore, one kilobyte is 1000 bytes.[1] The internationally recommended unit symbol for the kilobyte is kB.[1]

In some areas of information technology, particularly in reference to solid-state memory capacity, kilobyte instead typically refers to 1024 (210) bytes. This arises from the prevalence of sizes that are powers of two in modern digital memory architectures, coupled with the coincidence that 210 differs from 103 by less than 2.5%. A kibibyte is defined by IEC 80000-13 as 1024 bytes.


Definitions and usage

Base 10 (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 the related definitions of the prefixes mega (1000000), giga (1000000000), etc., are most commonly used for data transfer rates in computer networks, internal bus, hard drive and flash media transfer speeds, and for the capacities of most storage media, particularly hard drives,[3] flash-based storage,[4] 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 IEC 80000-13 standard uses the term 'byte' to mean eight bits (1 B = 8 bit). Therefore, 1 kB = 8000 bit. One thousand kilobytes (1000 kB) is equal to one megabyte (1 MB), where 1 MB is one million bytes.

Base 2 (1024 bytes)

The term 'kilobyte' has traditionally been used to refer to 1024 bytes (210 B).[5][6][7] The usage of the metric prefix kilo for binary multiples arose as a convenience, because 1024 is approximately 1000.[8]

The binary interpretation of metric prefixes is still prominently used by the Microsoft Windows operating system.[9] Metric prefixes are also used for random-access memory capacity, such as main memory and CPU cache size, due to the prevalent binary addressing of memory.

The binary meaning of the kilobyte for 1024 bytes typically uses the symbol KB, with an uppercase letter K. The B is often omitted in informal use. For example, a processor with 65,536 bytes of cache memory might be said to have "64 K" of cache. In this convention, one thousand and twenty-four kilobytes (1024 KB) is equal to one megabyte (1 MB), where 1 MB is 10242 bytes.

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.[10] Thus the kibibyte, symbol KiB, represents 210  bytes = 1024 bytes. These prefixes are now part of the IEC 80000-13 standard. The IEC further specified that the kilobyte should only be used to refer to 1000 bytes. The International System of Units restricts the use of the SI prefixes strictly to powers of 10.[11]

Examples

  • The Shugart SA-400 5​14-inch floppy disk (1976) held 109,375 bytes unformatted,[12] and was advertised as "110 Kbyte", using the 1000 convention.[13] Likewise, the 8-inch DEC RX01 floppy (1975) held 256,256 bytes formatted, and was advertised as "256k".[14] On the other hand, the Tandon 5​14-inch DD floppy format (1978) held 368,640 (which is 360×1024) bytes, but was advertised as "360 KB", following the 1024 convention.
  • Early home computer systems would often advertise using the 1024 convention, hence the naming of the Commodore 64, Commodore 128, and the Amstrad CPC 464.
  • On modern systems, all versions of Microsoft Windows including the newest ((As of 2019)) Windows 10 divide by 1024 and represent a 65,536-byte file as "64 KB".[9] Conversely, Mac OS X Snow Leopard and newer represent this as 66 kB, rounding to the nearest 1000 bytes.[15] File sizes are reported with decimal prefixes.[16]
  • (As of 2016) the binary interpretation was still used in marketing and billing by some telecommunication companies, such as Vodafone,[17] AT&T,[18] Orange[19] and Telstra.[20]

See also


References

  1. 1.0 1.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. 1977 Disk/Trend Report Rigid Disk Drives, published June 1977
  4. SanDisk USB Flash Drive "Note: 1 megabyte (MB) = 1 million bytes; 1 gigabyte (GB) = 1 billion bytes."
  5. Kilobyte – Definition and More from the Free Merriam-Webster Dictionary . Merriam-webster.com (2010-08-13). Retrieved on 2011-01-07.
  6. Kilobyte | Define Kilobyte at Dictionary.com . Dictionary.reference.com (1995-09-29). Retrieved on 2011-01-07.
  7. Definition of kilobyte from Oxford Dictionaries Online . Askoxford.com. Retrieved on 2011-01-07.
  8. "Prefixes for binary multiples". International Electrotechnical Commission. http://www.iec.ch/si/binary.htm. 
  9. 9.0 9.1 "Determining Actual Disk Size: Why 1.44 MB Should Be 1.40 MB". Support.microsoft.com. 2003-05-06. http://support.microsoft.com/kb/121839. 
  10. National Institute of Standards and Technology. "Prefixes for binary multiples". http://physics.nist.gov/cuu/Units/binary.html.  "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."
  11. International Bureau of Weights and Measures (2019-05-20), SI Brochure: The International System of Units (SI) (9th ed.), p. 143, ISBN 978-92-822-2272-0, https://www.bipm.org/utils/common/pdf/si-brochure/SI-Brochure-9.pdf . "The SI prefixes refer strictly to powers of 10. They should not be used to indicate powers of 2 (for example, one kilobit represents 1000 bits and not 1024 bits). The names and symbols for prefixes to be used with powers of 2 are recommended as follows: kibi Ki 210 [...]"
  12. "SA400 minifloppy". Swtpc.com. 2013-08-14. http://www.swtpc.com/mholley/SA400/SA400_Index.htm. 
  13. "Archived copy". http://www.swtpc.com/mholley/SA400/SA400_Datasheet.pdf. 
  14. "Archived copy". http://bitsavers.org/pdf/dec/disc/rx01/EK-RX01-MM-002_maint_Dec76.pdf. 
  15. "How OS X and iOS report storage capacity". Support.apple.com. 2013-07-01. http://support.apple.com/kb/TS2419. 
  16. "How Mac OS X reports drive capacity". Apple Inc. 2009-08-27. http://support.apple.com/kb/TS2419. 
  17. "3G/GPRS data rates". Vodafone Ireland. https://www.vodafone.ie/planscosts_bus/data/. 
  18. "Data Measurement Scale". AT&T. http://www.att.com/support_static_files/KB/KB24648.html. 
  19. "Internet Mobile Access". Orange Romania. https://www.orange.ro/recharge/internet.html. 
  20. "Our Customer Terms". Telstra. p. 7. https://www.telstra.com.au/content/dam/tcom/personal/consumer-advice/pdf/intl-roaming.pdf.