Abs

Description

Calculates the absolute value of a number.

Syntax

Abs ( n )

Argument

Description

n

The number for which you want the absolute value

Returns

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

Examples

Example 1

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))

Example 2

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

Abs(value_set) > 5

See also