-
Notifications
You must be signed in to change notification settings - Fork 112
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
Either angles or cld don't work consistently #686
Comments
The problem is this method: Line 76 in 6fb11e7
This is intended for The Footnotes
|
If only angles were dimensionful from the beginning... :) |
Dimensionless angles is the SI standard, so it makes sense for If you want to treat Angles as a Dimension checkout DimensionfulAngles.jl. |
Yes.
Does not follow from the former. julia> 1u"W/°^2" |> u"W"
3282.806350011744 W
Nice, but doesn't really help assuming one wants to interoperate with other packages using/defining units. julia> 1u"lm" == 1u"cd"
true It's much easier to discard radians after a computation where they were properly tracked than to introduce angular units after a computation where they weren't. |
I don't disagree but I respect the decision to be consistent with SI. If anything I would add angular dimensions as an option and SI as default.
Ah, good point! I missed this (I have never worked with |
I'm also all for providing an option for dimensionless/dimensionful angles! But it's important for such an option to work with other packages and functions defining/using units.
and then the enduser should be able to choose whether they want to ignore those radians or not, without changing |
Adding zero shouldn't silently influence results in a quite unexpected way:
Either it should throw an error, or remain consistent. Not sure what part exactly is to blame here: angles handling or the
cld
method. Probably the former?The text was updated successfully, but these errors were encountered: