richardschneider / isq

International System of Quantities, ISO-80000
MIT License
2 stars 1 forks source link

Other measurement systems #2

Open richardschneider opened 8 years ago

richardschneider commented 8 years ago

Add US and Imperial measurements. These systems have name conflicts so a preference of measurement systems is required.

NIST SP 811 has some good info.

richardschneider commented 8 years ago

string Quantity.in(measurementSystem) would be nice. It returns a string representation of the quantity in another measurement system.

  SI.Quantity('30.48 cm').in('US').should.equal('1 foot')