Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Do you use "kibibyte" as a unit of measurement in your programs? [closed]

Tags:

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?

like image 943
Steve Hanov Avatar asked Oct 07 '08 01:10

Steve Hanov


People also ask

Does Windows use KB or KiB?

Although the International Electronic Commission established the term kibibyte for 1024 bytes, with the abbreviation KiB, Windows Explorer continues to use the abbreviation KB.

What is KiB measurement?

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.

What's the difference between KB and KiB?

"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)

Does Windows use MB or MIB?

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.


1 Answers

KB is 1024 bytes, damnit.

like image 83
Serafina Brocious Avatar answered Oct 08 '22 17:10

Serafina Brocious