-
Notifications
You must be signed in to change notification settings - Fork 114
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
Fix uconvert For Inverse Units #338
Comments
@briochemc this works on v1.2.0 but not v1.2.1. Looks like #335 wasn't enough |
hmm, I think my logic is wrong. if there are 1000000 "things" per cm^3, then there will be a magnitude more than that in a m^3, so it looks like Unitful's answer here actually is correct. |
Also, I was testing the wrong function in the REPL 😑 The result is consistent across all versions v1, v1.1, v1.2.0, v1.2.1. @briochemc Sorry for the noise! |
Yes, this is a volumetric density, so if you go to a larger volume you expect "more stuff", and the factor 10^6 when going from a volume of 1cm^3 to 1m^3 looks indeed correct. Ok, I think we can close this ticket. |
uconvert
does not calculate the correct value for inverse units.This works as expected:
When using inverse units, I expected the value
1.0 m^-3
but got this insteadThe text was updated successfully, but these errors were encountered: