Skip to content

Commit

Permalink
Update docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
eliascarv committed Dec 11, 2024
1 parent bd81b57 commit 8becfd6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/conversion.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8becfd6

Please sign in to comment.