Calculation Engine Limit Functions
The following are functions for limit checks to be used in the OAS Calculation Engine:
Ceiling
Ceiling of value. Returns the smallest integral value that is greater than or equal to the specified double-precision floating-point number.
Parameters: Value to evaluate
Example:
CEIL([Tag.Value])
Floor
Floor of value. Returns the largest integer less than or equal to the specified double-precision floating-point number.
Parameters: Value to convert
Example:
FLOOR([Tag.Value])
Maximum
Returns highest value of 2 values.
Parameters:
- First value to evaluate
- Second value to evaluate
Examples:
MAX([Tag1.Value],[Tag2.Value])
MAX([Tag1.Value],100)
Minimum
Returns lowest value of 2 values.
Parameters:
- First value to evaluate
- Second value to evaluate
Examples:
MIN([Tag1.Value],[Tag2.Value])
MIN([Tag1.Value],100)
Truncate
Truncates a value to the nearest integer.
Parameters:
- Value to convert
Example:
TRUNC([Tag.Value])