You are here

There are not 1024 bytes in a kilobyte!

Submitted by jbrown on Tue, 07/23/2013 - 19:25

According to the SI standard, there are 1000 bytes in a kilobyte.

There is another standard called IEC that has 1024 bytes in a kibibyte, but this is only useful when measuring things that are naturally a power of two, e.g. a stick of RAM.

Currently Drupal renders IEC quantities with SI units which is incorrect.

Most people find it very confusing and surprising for files to use IEC (1024 bytes in a kibibyte) because everything else in the world uses 1000 (litres, kilograms). Apple is leading the way by switching to SI:

Drupal should follow suit. I have created a patch for Drupal 8:

Add new comment