| y | x | atan2pi(y, x) |
|---|---|---|
| NaN | any | NaN |
| any | NaN | NaN |
| ±0.0 | -0.0 | ±1.0 |
| ±0.0 | +0.0 | ±0.0 |
| ±0.0 | <0.0 | ±1.0 |
| ±0.0 | >0.0 | ±0.0 |
| ±∞ | -∞ | ±3/4 |
| ±∞ | +∞ | ±1/4 |
| ±∞ | any | ±1/2 |
| any | -∞ | ±1.0 |
| any | +∞ | ±0.0 |
decimal32 y = 10; decimal32 x = 0; assert (atan2pi(y, x) == decimal32("0.5"));
Page generated by adrdox
Calculates the arc tangent of y / x divided by π, returning a value ranging from -1 to 1. Exceptions: