[#BloombergLP-bdldfp-DecimalImpUtil-pow-03]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdldfp.adoc[bdldfp]::xref:BloombergLP/bdldfp/DecimalImpUtil.adoc[DecimalImpUtil]::pow
:relfileprefix: ../../../
:mrdocs:

Return the value of the specified `base` raised to the power of the specified `exp`&period;

== Synopsis

Declared in `&lt;bdldfp&lowbar;decimalimputil&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
xref:BloombergLP/bdldfp/DecimalImpUtil/ValueType32.adoc[DecimalImpUtil::ValueType32]
pow(
    xref:BloombergLP/bdldfp/DecimalImpUtil/ValueType32.adoc[ValueType32] base,
    xref:BloombergLP/bdldfp/DecimalImpUtil/ValueType32.adoc[ValueType32] exp);
----

== Description

Special value handling&colon; &ast; If `base` is finite and negative and `exp` is finite and non&hyphen;integer, quiet NaN is returned and the value of the macro `EDOM` is stored into `errno`&period; &ast; If the mathematical result of this function is infinity or undefined or a range error due to overflow occurs, infinity is returned and the value of the macro `ERANGE` is stored into `errno`&period; &ast; If a range error occurs due to underflow, the correct result (after rounding) is returned and the value of the macro `ERANGE` is stored into `errno`&period; &ast; If either argument is signaling NaN, quiet NaN is returned and the value of the macro `EDOM` is stored into `errno`&period;


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