up previous next
abs

absolute value of a number

Syntax
abs(N:INT):INT
abs(N:RAT):RAT

Description
This function returns the absolute value of N.

Example
/**/  abs(-3);
3

/**/  abs(-2/3);
2/3