exp

Calculates ex

@IEEECompliant("exp", 42)
D
exp
(
D
)
(
auto const ref D x
)

Throws

InvalidOperationExceptionx is signaling NaN
UnderflowExceptionex is too small to be represented
OverflowExceptionex is too big to be represented
InexactExceptionthe result is inexact

Special values

xexp(x)
NaNNaN
±0.0+1.0
-∞0
+∞+∞

Examples

decimal32 power = 1;
assert (exp(power) == decimal32.E);

Meta