---
schema_version: "1"
id: 25ed79a98c9a06bf0b316acba3cab7a399c7f8d6347e31c06d7e0a61810a4a83
title: atan(n)
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/analytics/bi_dev_guide_saql/guides/reference/bi-saql-functions-math-atan.md
canonical_url: https://developer.salesforce.com/docs/analytics/bi-dev-guide-saql/guide/bi-saql-functions-math-atan.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: c4712eb126e5f9e0478ce038adc382a0bd9d77b85f5b31507b800d8bcc339d50
products:
  - Analytics SAQL Developer Guide
  - analytics
---

# atan(n)

Returns the arctangent value of radians value _n_. _n_ can be any real numeric value in the range of -1e308 \<= _n_ \<= 1e308. If `null` is passed as an argument, `atan()` returns `null`. This function can only be used in a `foreach` statement.

## Example

```nolang
q = foreach q generate atan(radians) as arctangent;
```
