## SQRT

The `SQRT` function in ES|QL is used to calculate the square root of a number. The input can be any numeric value and the return value is always a double. If the input is a negative number or infinity, the function returns null.

### Syntax

`SQRT(number)`

#### Parameters

`number`: Numeric expression. If null, the function returns null.

### Examples

Here are a couple of examples of how to use the `SQRT` function in ES|QL:

```esql
ROW d = 100.0
| EVAL s = SQRT(d)
```

In this example, the `SQRT` function is used to calculate the square root of 100. The result is stored in the variable `s`.

```esql
ROW d = 16.0
| EVAL s = SQRT(d)
```

In this example, the `SQRT` function is used to calculate the square root of 16. The result is stored in the variable `s`.