We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
deg2rad
Currently the Base.deg2rad produces wrong output "units" when input is of type Degree:
Base.deg2rad
using Unitful angle = 90u"°" deg2rad(angle) 1.5707963267948966°
(Notice the degree symbol at the end.) I propose something similar to how cos is handled:
cos
deg2rad(d::Quantity{T, NoDims, typeof(Unitful.°)}) where {T} = deg2rad(ustrip(d)) * 1u"rad"
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Currently the
Base.deg2rad
produces wrong output "units" when input is of type Degree:(Notice the degree symbol at the end.)
I propose something similar to how
cos
is handled:The text was updated successfully, but these errors were encountered: