@@ -42,17 +42,21 @@ results in behavior identical to calling [`uconvert`](@ref).
4242
4343### Dimensionless quantities
4444
45- For dimensionless quantities, ` uconvert ` can be used to strip the units without
46- losing power-of-ten information:
45+ For dimensionless quantities, ` uconvert ` can be used with the [ ` NoUnits ` ] ( @ref ) unit to
46+ strip the units without losing power-of-ten information:
4747
4848``` jldoctest
49- julia> uconvert(Unitful. NoUnits, 1.0u"μm/m")
49+ julia> uconvert(NoUnits, 1.0u"μm/m")
50501.0e-6
5151
52- julia> uconvert(Unitful. NoUnits, 1.0u"m")
52+ julia> uconvert(NoUnits, 1.0u"m")
5353ERROR: DimensionError: and m are not dimensionally compatible.
5454```
5555
56+ ``` @docs
57+ Unitful.NoUnits
58+ ```
59+
5660You can also directly convert to a subtype of ` Real ` or ` Complex ` :
5761
5862``` jldoctest
@@ -299,8 +303,8 @@ For multiplication and division, note that powers-of-ten prefixes are significan
299303in unit cancellation. For instance, ` mV/V ` is not simplified, although ` V/V ` is.
300304Also, ` N*m/J ` is not simplified: there is currently no logic to decide
301305whether or not units on a dimensionless quantity seem "intentional" or not.
302- It is however possible to cancel units manually, by passing the dimensionless
303- quantity to the [ ` NoUnits ` ] ( @ref ) constructor . This takes into account different SI-prefixes:
306+ It is however possible to cancel units manually, by converting the dimensionless
307+ quantity to the [ ` NoUnits ` ] ( @ref ) unit . This takes into account different SI-prefixes:
304308``` jldoctest
305309julia> using Unitful
306310
0 commit comments