## Syntax
```mermaid
%%{init: {
'theme': 'base',
'flowchart': { 'padding': '7', 'nodeSpacing': '20', 'rankSpacing': '20' },
'themeVariables': {
'fontSize': '11px',
'fontFamily': 'Arial'
}
}}%%
flowchart LR
Start((START)) --> | | ABS[ABS]:::quoted
ABS --> End((END))
```
## Purpose
The `ABS` SQL function returns the absolute value of a number as decimal.
Parameters:
- Input: A number that fits the range of the data type `double`.
Returns: decimal.
## Examples
`ABS` retrieves the absolute value of 5 and -5:
```sql
select abs(5), abs(-5)
-------- --------
5 5
```