[#mp_units-scale] = xref:mp_units.adoc[mp_units]::scale :relfileprefix: ../ :mrdocs: Scale `value` by the unit magnitude passed as `m,` converting to type `To.` == Synopsis Declared in `<mp‐units/framework/scaling.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename To, xref:mp_units/UnitMagnitude.adoc[UnitMagnitude] M, typename From> requires requires(const From& v) { scaling_traits<From, To>::template scale<M{}>(v); } [[nodiscard]] constexpr To scale( M, From const& value); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#