# abs()

Computes the absolute value of a number.```
y = abs(x);
```

x
the number
x — if x is greater than or equal to 0.-x — if x is less than 0.

```
length = abs(a-b); // will return distance between a and b
```

```
y = abs(x);
```

x
the number
x — if x is greater than or equal to 0.-x — if x is less than 0.

```
length = abs(a-b); // will return distance between a and b
```