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

Support for physical units? #70

Open
Chris1234567899 opened this issue Jul 28, 2022 · 1 comment
Open

Support for physical units? #70

Chris1234567899 opened this issue Jul 28, 2022 · 1 comment
Labels
enhancement Indicates new feature requests

Comments

@Chris1234567899
Copy link

Great package - are you planning to support physical units in this package? Like area, length, mass, etc...?
There is a great JS library which allows for quite "complex" calculations like evaluate('10km/h > 17m/3s'). And even allows the creation of custom units.
https://mathjs.org/docs/datatypes/units.html

It would be awesome to have something similar in dart.

@fkleon fkleon added the enhancement Indicates new feature requests label Jul 29, 2022
@fkleon
Copy link
Owner

fkleon commented Jul 29, 2022

Thanks for the suggestion, I like the idea!

Support for units wasn't a consideration during development of this library which has a pretty narrow scope so far. Implementing this would likely require some rather large changes to the way the library works internally.

However, I'll leave this ticket open as an enhancement request for future consideration, or for somebody else to pick up :)

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

No branches or pull requests

2 participants