# ABS

**The function ABS takes a number and returns the absolute value of that number.**

This function takes a single [Number](../../variable-data-types/the-number-variable-data-type) as input. It outputs the absolute value of that Number.

#### Declaration

```javascript
ABS(number) -> absolute_value
```

&#x20;

#### Parameters

**number** (required, type: _number_) The number to return the absolute value of.

#### Return Values

**absolute\_value** (type: _number_) The absolute value of the given number. The absolute value of a number is the distance that number is from zero, irrespective of the direction. Absolute values will always be positive.&#x20;

#### Examples

The following example takes the number -5 and outputs the absolute value, 5:

```javascript
ABS(-5) -> 5
```

The following example takes the number 0.25 and outputs the absolute value, 0.25:

```javascript
ABS(0.25) -> 0.25
```

&#x20;

ABS(-5)
