# Abs

__Value__ **= Abs (** __Number__ AS Float **)**

Compute the absolute value of a number.

The absolute value of a number is its positive value, i. e. the absolute value of -7 is 7 and that of +7 is also 7.

### Examples

' Abs() lets you easily find the difference between two values.
**Dim** value1**,** value2 **As** **Integer**
value1 **=** **100**
value2 **=** **200**
**Print** "The difference is "**;** **Abs****(**value1 **-** value2**)**
value1 **=** **-100**
value2 **=** **200**
**Print** "The difference is "**;** **Abs****(**value1 **-** value2**)**

```
The difference is 100
The difference is 300
```

### See also