PercentDifference

(Function Library)

Description: Returns the percentage difference between two numbers
Returns: Numeric
Usage: Script or steady state.
Function Groups: General Math
Related to:  
Format: \FunctionLib.PercentDifference(Value1, Value2)
Parameters:  
Value1
The first numeric value.
Value2
The second numeric value.
Comments:

This module is a member of the Function Library, and must therefore be prefaced by \FunctionLib as shown in the "Format" section.

Performs the following calculation:

Return(Abs(Value1 - Value2)/Value2);

Example:

\FunctionLib.PercentDifference(50, 100)

Will return 0.50