[#mp_units-mag_power] = xref:mp_units.adoc[mp_units]::mag_power :relfileprefix: ../ :mrdocs: Create a Magnitude which is some rational number raised to a rational power. == Synopsis Declared in `<mp‐units/framework/unit_magnitude.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< /* implementation-defined */ auto Base, int Num, int Den = 1> requires (detail::get_base_value(Base) > 0) constexpr xref:mp_units/UnitMagnitude.adoc[UnitMagnitude] auto mag_power = pow<Num, Den>(mag<Base>); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#