Megabyte

The megabyte is a multiple of the unit byte for digital information storage or transmission with two different values depending on context: 1 048  576 bytes (220) generally for computer memory;  and one million bytes (106, see prefix mega-) generally for computer storage. The IEEE Standards Board has decided that "Mega will mean 1 000 000", with exceptions allowed for the base-two meaning. In rare cases, it is used to mean 1000&times;1024 (1 024  000) bytes. It is commonly abbreviated as Mbyte or MB (compare Mb, for the megabit).

Definition
The term "megabyte" is commonly used to mean either 10002 bytes or 10242 bytes. This originated as compromise technical jargon for the byte multiples that needed to be expressed by the powers of 2 but lacked a convenient name. As 1024 (210) approximates 1000 (103), roughly corresponding SI multiples began to be used for binary multiples. By the end of 2007, standards and government authorities including IEC, IEEE, EU, and NIST proposed standards for binary prefixes and requiring the use of megabyte to strictly denote 10002 bytes and mebibyte to denote 10242 bytes. This is reflected in an increasing number of software projects using the new definitions, but some file managers still show file sizes using the binary interpretation (10242 bytes). The term remains ambiguous and it can follow any one of the following common definitions:
 * 1 000  000 bytes (10002, 106): This is the definition recommended by the International System of Units (SI) and the International Electrotechnical Commission IEC. This definition is used in networking contexts and most storage media, particularly hard drives, Flash-based storage, and DVDs, and is also consistent with the other uses of the SI prefix 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 in decimal units.
 * 1 048  576 bytes (10242, 220): This definition is most commonly used in reference to computer memory, but most software that display file size or drive capacity, including file managers also use this definition. See Consumer confusion (in the "gigabyte" article). This definition is synonymous with the unambiguous IEC standard name mebibyte, however as of 2011 adoption of the standard has not been widespread.
 * 1 024  000 bytes (1000&times;1024): This is used to describe the formatted capacity of the "1.44 MB" 3.5 inch HD floppy disk, which actually has a capacity of 1  474  560 bytes.

RAM usage: In modern computer systems, blocks of main working memory (RAM) invariably come in sizes that are some-power-of-2 bytes, so for this reason, the binary M-means-1024&times;1024-system will almost always be used when talking about blocks of RAM. Example: "1 MB of RAM" =1&times;1024&times;1024 bytes (1 048  576 bytes)

Semiconductor memory doubles in size for each address line added to an integrated circuit package, which favors counts that are powers of two. The capacity of a disk drive is the product of the sector size, number of sectors per track, number of tracks per side, and the number of disk platters in the drive. Changes in any of these factors would not usually double the size. Sector sizes were set as powers of two (256 bytes, 512 bytes and so on) for convenience in processing. It was a natural extension to give the capacity of a disk drive in multiples of the sector size, giving a mix of decimal and binary multiples when expressing total disk capacity.

Examples of use
Depending on compression methods and file format, a megabyte of data can roughly be:
 * a 1024&times;1024 pixel bitmap image with 256 colors (8 bpp color depth).
 * 1 minute of 128 kbit/s MP3 compressed music.
 * 6 seconds of uncompressed CD audio.
 * a typical English book volume in plain text format (500 pages &times; 2000 characters per page).