Loading

ABS

math

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.

ABS is available since version 1.0.0.

See also

Signatures

Examples

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