> ## Documentation Index
> Fetch the complete documentation index at: https://docs.firebolt.io/llms.txt
> Use this file to discover all available pages before exploring further.

> Reference material for TAN function

# TAN

Trigonometric function that calculates the tangent of a specific value in radians.

## Syntax

```sql theme={"theme":{"light":"css-variables","dark":"css-variables"}}
TAN(<value>)
```

## Parameters

| Parameter | Description                                                | Supported input types |
| :-------- | :--------------------------------------------------------- | :-------------------- |
| `<value>` | The value that determines the returned tangent in radians. | `DOUBLE PRECISION`    |

## Return Type

`TAN` returns a value of type `DOUBLE PRECISION`.

## Example

The following query calculates the tangent of 1.57 radians. 1.57 is approximately pi/2:

<div className="query-window">
  ```
  SELECT TAN(1.57) as result;
  ```

  | result <span>double</span> |
  | :------------------------- |
  | 1255.7655915007897         |

  <p><span>Rows: 1</span><span>Execution time: 6.98ms</span></p>
</div>

The following query calculates the tangent of pi:

<div className="query-window">
  ```
  SELECT ROUND(TAN(PI()), 5) as result;
  ```

  | result <span>double</span> |
  | :------------------------- |
  | 0                          |

  <p><span>Rows: 1</span><span>Execution time: 4.68ms</span></p>
</div>
