---
title: "ATAN"
description: "La funci\u00F3n SQL ATAN devuelve el \u00E1ngulo de la tangente proporcionada."
language: es
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/es/docs/invantive-universalsql/grammar/sql-functions/atan
original: https://documentation.invantive.eu/en/docs/invantive-universalsql/grammar/sql-functions/atan
updated: 2026-12-04T13:19:32Z
license: https://documentation.invantive.eu/es/
---

## Sintaxis
```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))
```

## Propósito
La función SQL `ATAN` devuelve el ángulo de la tangente indicada.

Véanse también [[TAN]] y [[ATAN2]].

Parámetros:
- Datos de entrada (`decimal`): la tangente de la que se quiere calcular el ángulo.

Devuelve: Un número que representa el ángulo de la tangente proporcionada como `decimal`.

## Ejemplos
`ATAN` calcula el ángulo de la tangente 0:
```sql
select atan(0)

--------
0
```
`ATAN` calcula el ángulo de la tangente 1, redondeado a cuatro decimales:
```sql
select round(atan(1), 4)

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

