# ABS

Returns the positive value of a given number, regardless of sign.

## Syntax

```sql
ABS ( expression )

```

## Arguments

* expression: any expression. This may be a column name, the result of another function, or a math operation.

## Return Type

The absolute value of the expression.

## Examples

```sql
SELECT ABS(-9);

```

```output

+---------+
| ABS(-9) |
+---------+
|       9 |
+---------+

```

```sql
SELECT ABS(9);

```

```output

+--------+
| ABS(9) |
+--------+
|      9 |
+--------+
```

```sql
SELECT ABS(20-50);

```

```output

+------------+
| ABS(20-50) |
+------------+
|         30 |
+------------+
```

***

Modified at: April 17, 2023

Source: [/db/v9.1/reference/sql-reference/numeric-functions/abs/](https://docs.singlestore.com/db/v9.1/reference/sql-reference/numeric-functions/abs/)

(An index of the documentation is available at /llms.txt)
