Outdated Version
You are viewing an older version of this section. View current production version.
ATAN2, ATAN
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.
Syntax
ATAN2 (y, x), ATAN (y, x)
Arguments
- x and y: the arguments
Return Type
Float or double.
Examples
select atan2(1, 1);
+--------------------+
| atan2(1, 1) |
+--------------------+
| 0.7853981633974483 |
+--------------------+