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