---
title: math.atan2() function
description: math.atan2() returns the artangent of x/y, using the signs of the two to determine the quadrant of the return value.
url: https://docs.influxdata.com/flux/v0/stdlib/math/atan2/
estimated_tokens: 315
product: Flux
version: v0
---

# math.atan2() function

-   Flux 0.22.0+
-   View InfluxDB support

`math.atan2()` returns the artangent of `x/y`, using the signs of the two to determine the quadrant of the return value.

##### Function type signature

```js
(x: float, y: float) => float
```

For more information, see [Function type signatures](/flux/v0/function-type-signatures/).

## Parameters

### y

(Required) y-coordinate to use in the operation.

### x

(Required) x-coordinate to use in the operation.
