3 ms·
pint wrapper that does fuzzy matching: https://github.com/jakeogh/unitcalc https://github.com/jakeogh/unitcalc unitcalc 50stones kg unitcalc 1lightyear n
by jakeogh 7y ago
pint wrapper that does fuzzy matching: https://github.com/jakeogh/unitcalc https://github.com/jakeogh/unitcalc
unitcalc 50stones kg
unitcalc 1lightyear nm
unitcalc 7fortnights decades
unitcalc 99mi/sec fathom/month
unitcalc 3.14radians/fortnight degrees/ms
unitcalc 0.2W eV/century
unitcalc 0.2J/ns ton_TNT/month
Pint is excellent. If you put in units that need a dimension to convert, the exception says what is missing, it could ask for that value, but havent figured it out yet; obviously dont want to parse the exception message.
The framework to tell it physics exists, so stuff like:
unitcalc 0.2eV femtograms
should be possible.