Return base raised to the power exp.
Declared in <bdldfp_decimalimputil.h>
static
DecimalImpUtil::ValueType32
pow(
ValueType32 base,
ValueType32 exp);
Special value handling: * If base is finite and negative and exp is finite and non-integer, quiet NaN is returned and the value of the macro EDOM is stored into errno. * 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. * 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. * If either argument is signaling NaN, quiet NaN is returned and the value of the macro EDOM is stored into errno.
base raised to the power exp
| Name | Description |
|---|---|
| base | base value |
| exp | exponent value |