This is an old revision of the document!
This is a list of all simple functions in ACSUtils.
num abs(num x)
Returns the absolute value of x.
abs(1) == 1;
num min(num a, num b)
Returns the lesser of two numbers.
num max(num a, num b)
Returns the greater of two numbers.
num clamp(num x, num a, num b)
Limits x between a and b and returns the result.
int cmp(num a, num b)
Compares two numbers and returns the result:
0
- a and b are equal1
- a is greater than b-1
- a is less than b