You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
julia>using Unitful, UnitfulAstro
julia> a =1.0f0u"kpc/Gyr"
┌ Warning: Symbol Gyr was found in multiple registered unit modules.
│ We will use the one from UnitfulAstro.
└ @ Unitful E:\.julia\packages\Unitful\9janP\src\user.jl:5891.0f0 kpc Gyr^-1
julia> b =uconvert(u"km/s", a)
0.9777922216807892 km s^-1
julia>typeof(a)
Quantity{Float32, 𝐋 𝐓^-1, Unitful.FreeUnits{(Gyr^-1, kpc), 𝐋 𝐓^-1, nothing}}
julia>typeof(b)
Quantity{Float64, 𝐋 𝐓 ^-1, Unitful.FreeUnits{(km, s^-1), 𝐋 𝐓 ^-1, nothing}
I'd like b to stay Float32
The text was updated successfully, but these errors were encountered:
I'm going to close this since it is a Unitful issue, not specific to this repo. Feel free to open it again or move to a discussion for further discourse.
As pointed out by @islent in JuliaAstroSim/PhysicalParticles.jl#27 (comment)
I'd like b to stay
Float32
The text was updated successfully, but these errors were encountered: