---
title: "ATAN"
description: "The ATAN SQL function returns the angle of the provided tangent."
language: en
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/en/docs/invantive-universalsql/grammar/sql-functions/atan
original: https://documentation.invantive.eu/en/docs/invantive-universalsql/grammar/sql-functions/atan
updated: 2026-08-09T00:00:00Z
license: https://documentation.invantive.eu/en/
---

## Syntax
```mermaid
%%{init: {
  'theme': 'base',
  'flowchart': { 'padding': '7', 'nodeSpacing': '20', 'rankSpacing': '20' },
  'themeVariables': {
    'fontSize': '11px',
    'fontFamily': 'Arial'
  }
}}%%
flowchart LR
    Start((START)) --> ATAN[ATAN]:::quoted
    ATAN --> End((END))
```

## Purpose
The `ATAN` SQL function returns the angle of the provided tangent. 

See also [[TAN]] and [[ATAN2]].

Parameters: 
- Input (`decimal`): the tangent to get the angle of.

Returns: A number which represents the angle of the provided tangent as `decimal`.

## Examples
`ATAN` retrieves the angle of the tangent 0:
```sql
select atan(0)

--------
0
```
`ATAN` retrieves the angle of the tangent 1, rounded to four decimals:
```sql
select round(atan(1), 4)

--------
0.7854
```