[#mp_units-quantity-01-in-01] = xref:mp_units.adoc[mp_units]::xref:mp_units/quantity-01.adoc[quantity]::in :relfileprefix: ../../ :mrdocs: Returns this quantity re‐expressed with another representation type, applying an explicit rounding policy. == Synopsis Declared in `<mp‐units/framework/quantity.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< xref:mp_units/RepresentationOf.adoc[RepresentationOf<quantity_spec>] ToRep, xref:mp_units/RoundingPolicy.adoc[RoundingPolicy] Policy> requires std::constructible_from<ToRep, rep> && detail::ValidRoundingPolicyFor<Policy, rep, ToRep> [[nodiscard]] constexpr xref:mp_units/QuantityOf.adoc[QuantityOf<quantity_spec>] auto in(Policy policy) const; ---- == Return Value The equivalent quantity with representation type `ToRep`. [NOTE] ==== The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^]. ==== == Parameters [cols="1,4"] |=== | Name| Description | *policy* | the rounding policy to apply when the conversion is not exact |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#