By using this site, you agree to our Privacy Policy and our Terms of Use. Close
SvennoJ said:
Conina said:

Sorry, but you as a programmer should know, that Terabytes, Gigabytes, Megabytes and Kilobytes are measured in base 10.

A kilogram is 1000 grams, a kilometer is 1000 meters, a kilohertz is 1000 hertz, a kilowatt is 1000 watts, a kiloton is 1000 tons... so why should a kilobyte be 1024 bytes instead of 1000 bytes?

https://en.wikipedia.org/wiki/International_System_of_Units#Prefixes

Tebibytes, Gibibytes, Mebibytes and Kibibytes are measured in base 2.

Lol we never used those terms at work. Allocating a megabyte of memory was always 1024 KB, not 1000 KB.

Seems to still be the case

As we know that “Kilo” is generally used as a replacement for 1000. Since computers use the binary system (or base-2 numbering system), the base-2 number which is nearest to 1000 is 1024 (i.e. 2^10). That's why in the computer system, 1024 is referred to as “Kilo”.Oct 19, 2017

Lol, then you use the wrong terms for decades...

It were sloppy computer engineers who used the metric prefixes "kilo" (10^3, established since 1795) and "mega" (10^6, established since 1873) to describe certain binary values with somewhat close values - as 2^10 is 1024 ("close enough" to 1000) and 2^20 is 1048576 ("close enough" to 1000000). These were never official units in any way, just a kludge to get along. Standard documents always used power of 10 prefixes — which leads, by the way, to the effect of serial transmissions always being decimal - a 9.6 kbit line transfers 9600 bits per second, not 9830 :)

And they even used it inconsistantly. Perhaps the most egregious nonsense comes from the high density floppy disk which is described as having 1.44 Megabytes where a Megabyte is defined as 1000 kilobytes and a kilobyte is defined as 1024 bytes. i.e. 1.44 × 1000 × 1024 which is plainly ridiculous.

In the late 1980s/early 1990s it became obvious that there is a need for a clear meaning, so an international standard was proposed (kibi, mebi, gibi... for binary prefixes) - and accepted in the late 1990s.