Important

Helios features are now enabled during weekly update windows and are no longer directly tied to SingleStore engine releases. Refer to the release notes to view the latest features available in your Helios cluster.

ATAN2, ATAN

The ATAN2() and ATAN() functions return 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:

Was this article helpful?