Returns the numerical value of this quantity point on the scale of another unit, implicitly convertible to rep.
Synopsis
Declared in <mp‐units/framework/quantity_point.h>
template<UnitOf<quantity_spec> U>
requires (PO == default_point_origin®) && detail::ImplicitScaling<unit, U{}, rep>
[[nodiscard]]
constexpr
RepresentationOf<quantity_spec> auto
numerical_value_in(U u) const noexcept;
Description
This is the exact inverse of point<U>(value) and is provided only for points that use default_point_origin® ‐ 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).
Return Value
The numerical value expressed in u.
|
Note
|
The return value should not be discarded. |
Parameters
Name |
Description |
u |
the target unit, measured from the default point origin of that unit |
Created with MrDocs