[#mp_units-quantity_point-08-in-0b5] = xref:mp_units.adoc[mp_units]::xref:mp_units/quantity_point-08.adoc[quantity_point]::in :relfileprefix: ../../ :mrdocs: Returns this quantity point re‐expressed in another unit, applying an explicit rounding policy. == 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>] ToU, xref:mp_units/RoundingPolicy.adoc[RoundingPolicy] Policy> requires detail::ExplicitlyCastable<unit, ToU{}, rep> && detail::ValidRoundingPolicyFor<Policy, rep, rep> [[nodiscard]] constexpr xref:mp_units/QuantityPointOf.adoc[QuantityPointOf<quantity_spec>] auto in( ToU to_u, Policy policy) const; ---- == Return Value The equivalent quantity point expressed in `to_u`. [NOTE] ==== The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^]. ==== == Parameters [cols="1,4"] |=== | Name| Description | *to_u* | the target unit | *policy* | the rounding policy to apply when the conversion is not exact |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#