Abs

Description

Calculates the absolute value of a number.

Syntax

Abs ( n )

Argument

Description

n

The number for which you want the absolute value


Return value

The datatype of n. Returns the absolute value of n.

Examples

This expression counts all the product numbers where the absolute value of the product number is distinct:

Count(product_number for All DISTINCT Abs (product_number))

Only data with an absolute value greater than 5 passes this validation rule:

Abs(value_set) > 5

See also

Count

Abs in the section called “Abs” in PowerScript Reference