---
schema_version: "1"
id: 3b5e328fc122394dc577050bb2d8b1cb314fbaf750f40645158ff30f0600935f
title: atan
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/dataweave/latest/dw-math-functions-atan.md
canonical_url: https://docs.mulesoft.com/dataweave/latest/dw-math-functions-atan
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 38e4207ec8f5d258f448d9d8f5092cc85e3686aeec8f2a559adc2ec61ae75300
description: MuleSoft Documentation Site
release: "2.13"
latest: true
---
---
product: DataWeave
version: 2.13
is-latest-version: true
---

# atan

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

## atan(angle: Number): Number

Returns an arc tangent value that can range from `-pi/2` through `pi/2`.

_Introduced in DataWeave version 2.4.0._

### Parameters

<table><colgroup><col> <col></colgroup><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><p><code>angle</code></p></td><td><div><div><p>Number to convert into its arc tangent value.</p></div></div></td></tr></tbody></table>

### Example

This example shows how `atan` behaves with different inputs.

#### Source

```DataWeave
%dw 2.0
import * from dw::util::Math
output application/json
---
{
  "atan0":  atan(0),
  "atan13": atan(0.13),
  "atan-1": atan(-1)
}
```

#### Output

```Json
{
   "atan0": 0.0,
   "atan13": 0.12927500404814307,
   "atan-1": -0.7853981633974483
}
```
