Abs

Description:              This function returns the absolute value of a numeric expression.

Returns:                    A positive, numeric value

Usage:                       Script or steady state

Format:                      Abs(X)

Parameters:          X   { numeric }  { required }  { no default }

                                                X is 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);

See Also:

Min | Max | Step | Math Functions