Returns the numerical value converted to another unit implicitly convertible to rep.

Synopsis

Declared in <mp‐units/framework/quantity.h>

template<UnitOf<quantity_spec> U>
requires detail::ImplicitScaling<unit, U{}, rep>
[[nodiscard]]
constexpr
RepresentationOf<quantity_spec> auto
numerical_value_in(U u) const noexcept;

Return Value

The numerical value expressed in u.

Note

The return value should not be discarded.

Parameters

Name

Description

u

the target unit

Created with MrDocs