---
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: 112
product: Flux
version: v0
publisher: InfluxData
canonical: https://docs.influxdata.com/flux/v0/stdlib/math/atan2/
date: '2024-04-08T16:01:02-06:00'
lastmod: '2024-04-08T16:01:02-06:00'
---

* Flux 0.22.0+

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.
