Abs

Returns the absolute value of a numeric value or expression, or returns null if the value or expression is null.

Syntax

Abs(n1)

Parameters

Parameter

Description

n1

A numeric value or expression to evaluate.

Note: FormCalc follows the IEEE-754 international standard when handling floating point numeric values. For more information, see Number literals.

Examples

The following expressions are examples of using the Abs function:

Expression

Returns

Abs(1.03)

1.03

Abs(-1.03)

1.03

Abs(0)

0

// Ethnio survey code removed