# ABS

The `ABS` function returns the absolute value of a numeric expression.

## Syntax

`ABS(number)`

### Parameters

#### `number`

A numeric expression. If the value is `null`, the function returns `null`.

## Examples

```esql
ROW number = -1.0
| EVAL abs_number = ABS(number)
```

Calculate the absolute value of a negative number.

```esql
FROM employees
| KEEP first_name, last_name, height
| EVAL abs_height = ABS(0.0 - height)
```

Calculate the absolute value of the difference between `0.0` and the `height` column.
