[#mp_units-quantity-01-operator_assign] = xref:mp_units.adoc[mp_units]::xref:mp_units/quantity-01.adoc[quantity]::operator= :relfileprefix: ../../ :mrdocs: Assigns a new numerical value to `*this`. == Synopsis Declared in `<mp‐units/framework/quantity.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename FwdValue> requires detail::ImplicitFromNumber<reference> && detail::RepAssignableFrom<rep, FwdValue> constexpr xref:mp_units/quantity-01.adoc[quantity]& operator=(FwdValue&& val); ---- == Return Value `*this` == Parameters [cols="1,4"] |=== | Name| Description | *val* | the numerical value to assign |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#