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

# Abs

# \$abs

The `$abs` operator returns the absolute value of a number.

## Input

* A single numeric value

## Output

* The absolute value of the input

## Examples

### Positive Number

```json theme={null}
{
  "$abs": [
    5
  ]
}
```

Result: `5`

### Negative Number

```json theme={null}
{
  "$abs": [
    -3.5
  ]
}
```

Result: `3.5`

### Field Value

```json theme={null}
{
  "$abs": [
    {
      "$input": "temperature_change"
    }
  ]
}
```

Result: The absolute value of the temperature\_change field
