exp10m1

Calculates 10x - 1

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

Throws

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

Special values

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

Examples

decimal32 x = 3;
assert(exp10m1(x) == 999);

Meta