[#mp_units-mag_power]
= xref:mp_units.adoc[mp&lowbar;units]::mag&lowbar;power
:relfileprefix: ../
:mrdocs:

Create a Magnitude which is some rational number raised to a rational power&period;

== Synopsis

Declared in `&lt;mp&hyphen;units&sol;framework&sol;unit&lowbar;magnitude&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    &sol;&ast; implementation-defined &ast;&sol; auto Base,
    int Num,
    int Den = 1&gt;
requires detail&colon;&colon;is&lowbar;positive&lowbar;mag&lowbar;arg&lt;Base&gt;
constexpr xref:mp_units/UnitMagnitude.adoc[UnitMagnitude] auto mag&lowbar;power = pow&lt;Num, Den&gt;(mag&lt;Base&gt;);
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
