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

> Reference material for ABS function

# ABS

Calculates the absolute value of a number `<value>`, displaying the number's distance from `0`.

## Syntax

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

## Parameters

| Parameter        | Description                                                | Supported input types |
| :--------------- | :--------------------------------------------------------- | :-------------------- |
| `<numeric_type>` | The number that the absolute value function is applied to. | Any `NUMERIC` type    |

## Return Type

`NUMERIC`

## Example

The following example returns the absolute value of `-200.5`:

<div className="query-window">
  ```
  SELECT ABS(-200.50) as result;
  ```

  | result <span>double</span> |
  | :------------------------- |
  | 200.5                      |

  <p><span>Rows: 1</span><span>Execution time: 5.66ms</span></p>
</div>
