Loading

ABS


math
Since v1.0.0
Available on all platforms
See also

Computes the absolute value of a number value.

The ABS function consumes a numeric value from the top of the stack and pushes back its absolute value.

Since 2.6.0, this function can be applied to a list of numeric values.

Signature

Examples

42 ABS -42 ABS 3.14 ABS -3.14 ABS 0 ABS -0 ABS NaN ABS