exp10

Calculates 10x

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

Throws

InvalidOperationExceptionx is signaling NaN
UnderflowException10x is too small to be represented
OverflowException10x is too big to be represented
InexactExceptionthe result is inexact

Special values

xexp10(x)
NaNNaN
±0.0+1.0
-∞+0.0
+∞+∞

Examples

decimal32 x = 3;
assert(exp10(x) == 1000);

Meta