Absolute value

abs expression

Returns the absolute value of expression.

Example:

print abs 5
print abs 0
print abs -5

Output:

5
0
5

See also:

Table of Content