cooler-king / quantity

A package to make it easy to work with physical quantities.
MIT License
19 stars 4 forks source link

Use standard SI units for information #29

Closed osechet closed 4 years ago

osechet commented 4 years ago

Unlike what is said in the comments of the Information class, the SI defines the kilobyte as 1000 bytes. The traditional 1024 bytes is called a kibibyte. Source: https://en.wikipedia.org/wiki/Kibibyte

It would be nice to follow the standard and define the kB, MB, GB... as multiple of 1000 and to add the KiB, GiB... to the library.

cooler-king commented 4 years ago

Available in quantity 1.0.0 published Oct 6.