You are viewing documentation for version v1.1 and earlier. View latest version.
abs
returns the absolute value of the given number. In other words, if the
number is zero or positive then it is returned as-is, but if it is negative
then it is multiplied by -1 to make it positive before returning it.
> abs(23) 23 > abs(0) 0 > abs(-12.4) 12.4
> abs(23)
23
> abs(0)
0
> abs(-12.4)
12.4