[#mp_units-quantity-01-force_numerical_value_in]
= xref:mp_units.adoc[mp&lowbar;units]::xref:mp_units/quantity-01.adoc[quantity]::force&lowbar;numerical&lowbar;value&lowbar;in
:relfileprefix: ../../
:mrdocs:

== Synopsis

Declared in `&lt;mp&hyphen;units&sol;framework&sol;quantity&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;xref:mp_units/UnitOf.adoc[UnitOf&lt;quantity&lowbar;spec&gt;] U&gt;
requires detail&colon;&colon;ExplicitlyCastable&lt;unit, U&lcub;&rcub;, rep&gt;
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
constexpr
xref:mp_units/RepresentationOf.adoc[RepresentationOf&lt;quantity&lowbar;spec&gt;] auto
force&lowbar;numerical&lowbar;value&lowbar;in(U) 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]#
