You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

This function returns the absolute value of the given number, i.e., if number>=0 it returns the number, otherwise it returns the number multiplied with -1.

Syntax
abs(number) #Output: Number
Examples
Parser expressionDescription
%{abs(2)}

This example returns:

2

%{abs(-2)}

This example returns:

2

%{abs(0)}

This example returns:

0

Additional information

Parameters used in this function

ParameterInput (data type)Description
number

NUMBER

Any given number.
Output

This function returns a NUMBER