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 |
+--------------------+

Last modified: February 24, 2023

Was this article helpful?