# 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

```sql
ATAN2 (y, x), ATAN (y, x)

```

## Arguments

* x and y: the arguments

## Return Type

Float or double.

## Examples

```sql
SELECT ATAN2(1, 1);

```

```output

+--------------------+
| ATAN2(1, 1)        |
+--------------------+
| 0.7853981633974483 |
+--------------------+

```

***

Modified at: February 24, 2023

Source: [/db/v9.1/reference/sql-reference/numeric-functions/atan-2-atan/](https://docs.singlestore.com/db/v9.1/reference/sql-reference/numeric-functions/atan-2-atan/)

(An index of the documentation is available at /llms.txt)
