Abs

(Engine-Level Function)

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. Anything that can be cast to a floating point number.

Comments:

Given a valid numeric value, the returned value will be positive or zero (0)

Example:

  Angle = Abs(EncoderAngle);