[#mp_units-quantity_point-08-numerical_value_in-08] = xref:mp_units.adoc[mp_units]::xref:mp_units/quantity_point-08.adoc[quantity_point]::numerical_value_in :relfileprefix: ../../ :mrdocs: `numerical_value_in` overloads == Synopses Declared in `<mp‐units/framework/quantity_point.h>` Returns the numerical value of this quantity point on the scale of another unit, implicitly convertible to `rep`. [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 xref:mp_units/quantity_point-08/numerical_value_in-04.adoc[numerical_value_in](U u) const noexcept; ---- [.small]#xref:mp_units/quantity_point-08/numerical_value_in-04.adoc[_» more..._]# Returns the numerical value of this quantity point on the scale of another unit, applying an explicit rounding policy. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< xref:mp_units/UnitOf.adoc[UnitOf<quantity_spec>] U, xref:mp_units/RoundingPolicy.adoc[RoundingPolicy] Policy> requires (PO == default_point_origin(R)) && detail::ExplicitlyCastable<unit, U{}, rep> && detail::ValidRoundingPolicyFor<Policy, rep, rep> [[nodiscard]] constexpr xref:mp_units/RepresentationOf.adoc[RepresentationOf<quantity_spec>] auto xref:mp_units/quantity_point-08/numerical_value_in-0e.adoc[numerical_value_in]( U u, Policy policy) const noexcept; ---- [.small]#xref:mp_units/quantity_point-08/numerical_value_in-0e.adoc[_» more..._]# == Return Value * The numerical value expressed in `u`. * The numerical value expressed in `u`, measured from the default point origin. [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 | *policy* | the rounding policy to apply when the conversion is not exact |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#