-
-
Notifications
You must be signed in to change notification settings - Fork 217
Support scaled SI units #2616
New issue
Have a question about this project? No Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “No 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? No Sign in to your account
Comments
@YingboMa do you know why this limitation exists? |
First, In principle, unit checking can pass as long as they have the same dimension, but what happens when there's |
Mixing |
There's no way of tell if someone uses constants like julia> using DynamicQuantities
julia> u"cm"
0.01 m
julia> 1e-2u"m"
0.01 m
julia> 1e-2u"m" === u"cm"
true |
To support non-SI units, we need to use |
E.g. this fails:
Instead, one have to do:
These are identical. For highly composite units, rather cumbersome expressions will be generated. Allowing composite units should be very desirable (and was how things used to work).
The text was updated successfully, but these errors were encountered: