Watch the 7.3 Webinar On-Demand
This new release brings updates to Universal Storage, query
optimization, and usability that you won’t want to miss.
Returns the arc tangent of x and y. It is similar to calculating the arc tangent of y / x, except that the signs of both arguments are used to determine the quadrant of the result.
ATAN2 (y, x), ATAN (y, x)
Float or double.
SELECT ATAN2(1, 1);
+--------------------+
| ATAN2(1, 1) |
+--------------------+
| 0.7853981633974483 |
+--------------------+