Function abs()
calculates the absolute value of a number, the return is non-negative.
Arguments:
- Number <number>
Returns:
- Absolute value <number>, non-negative
Common Usage
Example: return the absolute value of -45.2
return abs(-45.2)
Example: return the absolute value of 1, -2.5, and -3
uncollect [1, -2.5, -3] as a
return abs(a)