﻿---
title: ES|QL TANH function
description: 
url: https://www.elastic.co/elastic/docs-builder/docs/2999/reference/query-languages/esql/functions-operators/math-functions/tanh
products:
  - Elasticsearch
---

# ES|QL TANH function
## Syntax

![Embedded](https://www.elastic.co/elastic/docs-builder/docs/2999/reference/query-languages/esql/images/functions/tanh.svg)


## Parameters

<definitions>
  <definition term="number">
    Numeric expression. If `null`, the function returns `null`.
  </definition>
</definitions>


## Description

Returns the [hyperbolic tangent](https://en.wikipedia.org/wiki/Hyperbolic_functions) of a number.

## Supported types


| number        | result |
|---------------|--------|
| double        | double |
| integer       | double |
| long          | double |
| unsigned_long | double |


## Example

```esql
ROW a=1.8
| EVAL tanh=TANH(a)
```


| a:double | tanh:double        |
|----------|--------------------|
| 1.8      | 0.9468060128462683 |