[#mp_units-quantity_point-08-numerical_value_in-04] = xref:mp_units.adoc[mp_units]::xref:mp_units/quantity_point-08.adoc[quantity_point]::numerical_value_in :relfileprefix: ../../ :mrdocs: 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>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<xref:mp_units/UnitOf.adoc[UnitOf<quantity_spec>] U> requires (PO == default_point_origin(R)) && detail::ImplicitScaling<unit, U{}, rep> [[nodiscard]] constexpr xref:mp_units/RepresentationOf.adoc[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(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)`. == Return Value The numerical value expressed in `u`. [NOTE] ==== The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^]. ==== == Parameters [cols="1,4"] |=== | Name| Description | *u* | the target unit, measured from the default point origin of that unit |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#