Skip to content

abs

Syntax

abs(x)

Parameters

x
an expression that evaluates to a numeric value

Returns

The absolute value of the parameter provided.

Description

The abs action calculates the absolute value of the input parameter.

It is an error if a non-numeric variable is supplied as a parameter.

Examples

This example sets a variable to the value 2.

my_variable = abs(-2)

See Also