PhpUnitsOfMeasure / php-units-of-measure

A library for handling physical quantities and the units of measure in which they're represented.
MIT License
305 stars 77 forks source link

Added storage types #73

Open lsv opened 7 years ago

haltuf commented 2 years ago

I just wanted to thank you for this PR. Although it has not been merged, it saves me a time writing it myself.

NiklasBr commented 2 years ago

I think this should differentiate between SI units and binary: https://en.wikipedia.org/wiki/Byte#Multiple-byte_units

Definition of prefixes using powers of 10—in which 1 kilobyte (symbol kB) is defined to equal 1,000 bytes—is recommended by the International Electrotechnical Commission (IEC).[27] The IEC standard defines eight such multiples, up to 1 yottabyte (YB), equal to 1000^8 bytes.