Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getSystems() It would be useful to tag/group the unit names by their SI, Imperial or other system and allow conversion toSystem('imperial') #108

Open
bcowgill opened this issue Jul 22, 2020 · 0 comments

Comments

@bcowgill
Copy link

getSystems() It would be useful to tag/group the unit names by their SI, Imperial or other system and allow conversion toSystem('imperial')

getSystems() ... ['si', 'imperial', ...]
Qty.getKinds('si')
or Qty.getUnits('length', 'imperial')
Qty(n,unit).isSystem('si')
Qty(n,unit).toSystem('imperial')

especially if one could register their own unit system somehow...

Qty(250, 'ml').toSystem('cooking') == 1 cup :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant