Abs

Category: Arithmetics
Since engine version: 1.0 OC

Description

Returns the absolute value of the given parameter, ignoring the sign of the value.

Syntax

int Abs(int value);

Parameter

value:
Absolute coordinate you want to convert to a relative coordinate.

Example

Abs(-12) == Abs(12) == 12
This expression is true.
Sven2, 2001-11