abs



Function: abs()

Returns the absolute value of a number.

Syntax

abs(number)

ArgumentTypeDescription
numberNumberA number for which the absolute value is required.

Examples

abs(-2.3)

returns 2.3.


abs(2.3)

returns 2.3.

See Also