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
uconvert
This works
julia> uconvert(u"s^-1", 3u"Hz") 3 s⁻¹
but this doesn't
julia> uconvert(u"1/s", 3u"Hz") ERROR: MethodError: no method matching uconvert(::Quantity{Int64, 𝐓⁻¹, Unitful.FreeUnits{(s⁻¹,), 𝐓⁻¹, nothing}}, ::Quantity{Int64, 𝐓⁻¹, Unitful.FreeUnits{(Hz,), 𝐓⁻¹, nothing}}) Closest candidates are: uconvert(::Any, ::Base.TwicePrecision) @ Unitful ~/.julia/packages/Unitful/orvol/src/range.jl:117 uconvert(::Unitful.Units, ::Quantity{T, D, U}) where {T, D, U} @ Unitful ~/.julia/packages/Unitful/orvol/src/conversion.jl:72 uconvert(::Unitful.Units, ::Number) @ Unitful ~/.julia/packages/Unitful/orvol/src/conversion.jl:82 ... Stacktrace: [1] top-level scope @ REPL[14]:1
Am I doing something wrong or is this a bug?
The text was updated successfully, but these errors were encountered:
This is because 1/s is a quantity, not a unit.
1/s
Sorry, something went wrong.
Ahh! That makes sense. Thanks!
No branches or pull requests
This works
but this doesn't
Am I doing something wrong or is this a bug?
The text was updated successfully, but these errors were encountered: