[#BloombergLP-bdldfp-DecimalUtil-exp-05a]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdldfp.adoc[bdldfp]::xref:BloombergLP/bdldfp/DecimalUtil.adoc[DecimalUtil]::exp
:relfileprefix: ../../../
:mrdocs:

Return `e` (Euler&apos;s number, 2&period;7182818) raised to the specified power `x`&period;

== Synopsis

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

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

== Description

Special value handling&colon; &ast; If `x` is &plus;&sol;&hyphen;0, 1 is returned&period; &ast; If `x` is negative infinity, &plus;0 is returned&period; &ast; If `x` is &plus;infinity, &plus;infinity is returned&period; &ast; If `x` is quiet NaN, quiet NaN is returned&period; &ast; If `x` is signaling NaN, quiet NaN is returned and the value of the macro `EDOM` is stored into `errno`&period; &ast; If `x` is finite, but the result value is outside the range of the return type, store the value of the macro `ERANGE` into `errno` and &plus;infinity value is returned&period;

== Return Value

`e` raised to the power `x`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *x*
| power to raise `e` to
|===


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