Returns the numerical value of this quantity point on the scale of another unit, implicitly convertible to rep.
Declared in <mp-units/framework/quantity_point.h>
template<UnitOf<quantity_spec> U>
requires (PO == default_point_origin(R)) && detail::ImplicitScaling<unit, U{}, rep>
[[nodiscard]]
constexpr
RepresentationOf<quantity_spec> auto
numerical_value_in(U u) const noexcept;
This is the exact inverse of point<U>(value) and is provided only for points that use default_point_origin(R) - the same condition under which text output and quantity_from_zero() are available. Points with a custom origin have no unique numerical representation, so their value must be requested from an explicit origin via quantity_from(origin).numerical_value_in(U).
| Name | Description |
|---|---|
| u | the target unit, measured from the default point origin of that unit |