The way we measure how much data computer storage media can hold is downright bizarre, not least because there are two conflicting systems in use that constantly masquerade as each other.
The engineer’s scale, the one that makes the most sense given the field, is based on powers of 2. It runs like this:
[ul]
[li]kibi- = 2[sup]10[/sup] = 1,024[/li][li]mebi- = 2[sup]20[/sup] = 1,048,576[/li][li]gibi- = 2[sup]30[/sup] = 1,073,741,824[/li][li]tebi- = 2[sup]40[/sup] = 1,099,511,627,776[/li][/ul]And so on, but commonly available disks aren’t that large yet. This makes sense because you can tell at a glance (almost) how much of the medium a given machine word will be able to address. For example, a 32-bit word will be able to address 4 gibibytes; if you need to access any more, you need to work out a paging scheme of some form. (64 bits pushes you out into the multi-exbibyte range, which is technically known as ‘freaking ginormous’. ;))
All that would be well and good if it wasn’t for marketing and all the other non-technical people who came around and mucked things up. The non-technical people imported the unmodified SI prefixes, which are based on powers of 10. They are perfectly logical and rational when measuring how far it is from here to Saturn or how much morphine Courtney Love can shoot up before passing out, but they don’t really help you when looking at disk sizes and making anything less than an order-of-magnitude comparison between models.
The kicker is that the power-of-10 and the power-of-2 units are almost the same, but the power-of-2 units are consistently larger. So marketing can label things in power-of-10 units and sell it to people who naïvely expect power-of-2 units. It’s as if companies were allowed to obfuscate the difference between ounces and grams when selling food, or feet and meters when selling rope.
The final insult in this sordid, geeky tale is that sometimes, power-of-2 and power-of-10 units are mixed in the same freaking number. Specifically, megabyte is also used to mean 1,024,000 bytes: That is, a power-of-10 megabyte of power-of-2 kibibytes. This is how we arrived at the 1.44 megabyte capacity for the 3.5" floppy disk.
There is a measure of perverse genius behind that last coup. And people wonder why programmers hate marketing.