| InvalidOperationException | x is signaling NaN |
| UnderflowException | 10x - 1 is too small to be represented |
| OverflowException | 10x - 1 is too big to be represented |
| InexactException | the result is inexact |
| x | exp10m1(x) |
|---|---|
| NaN | NaN |
| ±0.0 | ±0.0 |
| -∞ | -1.0 |
| +∞ | +∞ |
decimal32 x = 3; assert(exp10m1(x) == 999);
Calculates 10x - 1