---
schema_version: "1"
id: f437cd11a5ef4fc07505e5466b42fd75003becbe34fe3e45ee0d09e4fa8ba9f0
title: atan({n})
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/analytics/bi_dev_guide_sql/guides/bi-sql-math-atan.md
canonical_url: https://developer.salesforce.com/docs/analytics/bi-dev-guide-sql/guide/bi-sql-math-atan.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: f394eeb10609b6ddee8f64bee9a3edcf98035b6e0686d923a47a672d451bcf16
products:
  - SQL for Analytics Developer Guide
  - analytics
---

# atan({n})

Returns the arctan value of radians value `{n}`. `{n}` can be any real number in the range of -1e308 \<= `{n}` \<= 1e308. If `null` is passed as an argument, `atan()` returns `null`.

`atan({n})` takes the following syntax.

```nolang
SELECT ATAN(N) as ALIAS
FROM DATASET;
```

## Example

This example takes the arctan of 90 degrees.

```nolang
SELECT ATAN(RADIANS(90)) as arctanValue
FROM "Opportunity"
LIMIT 1;
```

| arctanValue |
| ----------- |
| 1.00388     |
