abs() Function

Function

abs( number )

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

Parameters

Keyword Type Description

number

Decimal Array

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

Returns

Decimal

Usage considerations

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

Open in Github Built: Mon, Nov 29, 2021 (03:22:58 PM)

On This Page

FEEDBACK