diff --git a/src/UnitfulAtomic.jl b/src/UnitfulAtomic.jl index caa588c..38efc60 100644 --- a/src/UnitfulAtomic.jl +++ b/src/UnitfulAtomic.jl @@ -243,6 +243,7 @@ julia> austrip(20u"nm") ``` """ austrip(x) = ustrip(auconvert(x)) +austrip(u::Units, x::Number) = auconvert(u::Units, x::Number) |> ustrip # In order to enable precompilation, some things need to be set at runtime __init__() = Unitful.register(UnitfulAtomic)