ABS

Description:

Returns the absolute value of a numeric expression.

Returns:

A positive, numeric value

Usage:

Script or steady state.

Function Groups:

Generic Math

Format:

Abs(X)

Related to: Min | Max | Step
Parameters:

X

Required. Any numeric expression.

Comments:

If the expression for X is positive, the value is returned as positive.

If the expression for X is negative, the value returned is the negative of the expression (i.e. the returned value is always positive or "0")

Example:

Angle = Abs(encoderAngle);