-
Notifications
You must be signed in to change notification settings - Fork 122
Open
Description
MWE:
julia> using Unitful
julia> convert(Float64, 1.0u"m")
ERROR: DimensionError: and m are not dimensionally compatible.
Stacktrace:
[1] #s103#141
@ ~/.julia/packages/Unitful/GYzMo/src/conversion.jl:7 [inlined]
[2] var"#s103#141"(::Any, s::Any, t::Any)
@ Unitful ./none:0
[3] (::Core.GeneratedFunctionStub)(::UInt64, ::LineNumberNode, ::Any, ::Vararg{Any})
@ Core ./boot.jl:602
[4] uconvert(a::Unitful.FreeUnits{(), NoDims, nothing}, x::Quantity{Float64, 𝐋, Unitful.FreeUnits{(m,), 𝐋, nothing}})
@ Unitful ~/.julia/packages/Unitful/GYzMo/src/conversion.jl:72
[5] convert(::Type{Float64}, y::Quantity{Float64, 𝐋, Unitful.FreeUnits{(m,), 𝐋, nothing}})
@ Unitful ~/.julia/packages/Unitful/GYzMo/src/conversion.jl:139
[6] top-level scope
@ REPL[274]:1Looking into the code, it seems there is a special case to handle this. Did it bitrot at some point?
Metadata
Metadata
Assignees
Labels
No labels