abs() Function

Returns the absolute value(s) of the specified number(s).

Syntax

abs( number, … )

number: (Decimal Array) A number or array of numbers, the absolute value(s) of which will be returned.

Returns

Decimal

Notes

If the number values are integers, the function will return an integer.

Examples

You can experiment with this function in the test box below.

Test Input

abs(-2.0) returns 2

FEEDBACK