For decades, in the field of computing (except disk manufacturers), a KB (kilobyte) was understood to mean 1024 bytes. In the past few years, there has been a movement to use KiB ("kibibyte") to mean 1024 bytes, and change the meaning of kilobyte to be 1000 bytes, dooming us to many more years of confusion. On the other hand, the movement seems to be confined to Gnome, and some overzealous wikipedia editing.
Will you be converting your programs to use KiB? If you have ever displayed a filesize in KB, did you divide by 1000 or 1024?
Although the International Electronic Commission established the term kibibyte for 1024 bytes, with the abbreviation KiB, Windows Explorer continues to use the abbreviation KB.
A kibibyte (KiB) is a unit of digital information storage used to denote the size of data. It is equivalent to 210, or 1,024, bytes.
"1 KB" means 1024 bytes (as Windows would report it, traditional usage) "1 kB" means 1000 bytes (as Mac OS would report it, IEC usage) "1 KiB" means 1024 bytes (unambiguous, but perhaps unfamiliar terminology)
Almost each operating system deals with these units differently and out of all, Windows is the most weird. It actually calculates everything in mebibytes but then adds a KB/MB/GB at the end, saying it's a megabyte. So a 1024 byte file will be reported as 1.00 KB, while in reality it is 1.00 KiB or 1.024 KB.
KB is 1024 bytes, damnit.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With