diff --git a/src/conversion.jl b/src/conversion.jl index 72f195cb..26534653 100644 --- a/src/conversion.jl +++ b/src/conversion.jl @@ -2,8 +2,8 @@ UnitConversionFactor(x::T) where {T<:AbstractFloat} Conversion factor with value `x`. -Used by the [`convfact`](@ref) function in floating point conversion factors -to preserve the precision of quantities. +Used by the [`convfact`](@ref) function to preserve +the floating-point precision of quantities. """ struct UnitConversionFactor{T<:AbstractFloat} <: AbstractIrrational x::T diff --git a/test/runtests.jl b/test/runtests.jl index 704af71d..dd32a39d 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -229,7 +229,7 @@ end @test uconvert(u"kb^1000", 1u"kb^1001 * b^-1") === 1000u"kb^1000" @test uconvert(u"kOe^1000", 1u"kOe^1001 * Oe^-1") === 1000u"kOe^1000" # Issue 753: - # preserve the floating point precision of quantities + # preserve the floating-point precision of quantities @test Unitful.numtype(uconvert(m, BigFloat(100)cm)) === BigFloat @test Unitful.numtype(uconvert(cm, (BigFloat(1)π + im) * m)) === Complex{BigFloat} @test Unitful.numtype(uconvert(rad, BigFloat(360)°)) === BigFloat