> ## 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.

# TANH

> Reference material for TANH function

Calculates the hyperbolic tangent of a provided value.

## Syntax

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

## Parameters

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

## Return Type

`DOUBLE PRECISION`

`TANH` is defined for every real argument and returns a value in the open interval between -1 and 1.

## Example

The hyperbolic tangent of 0 is 0:

```
SELECT TANH(0) as result;
```

| result double |
| :- |
| 0 |

Rows: 1Execution time: 5.21ms

At `LN(2)` the result is exact — `SINH(LN(2)) / COSH(LN(2))`, or `0.75 / 1.25`:

```
SELECT TANH(LN(2)) as result;
```

| result double |
| :- |
| 0.6 |

Rows: 1Execution time: 5.21ms


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.