[#mp_units-quantity-01-numerical_value_in-09] = xref:mp_units.adoc[mp_units]::xref:mp_units/quantity-01.adoc[quantity]::numerical_value_in :relfileprefix: ../../ :mrdocs: == Synopsis Declared in `<mp‐units/framework/quantity.h>` [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 detail::ExplicitlyCastable<unit, U{}, rep> && detail::ValidRoundingPolicyFor<Policy, rep, rep> [[nodiscard]] constexpr xref:mp_units/RepresentationOf.adoc[RepresentationOf<quantity_spec>] auto numerical_value_in( U, Policy policy) const noexcept; ---- == Return Value [NOTE] ==== The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^]. ==== [.small]#Created with https://www.mrdocs.com[MrDocs]#