RoundingRule

You can use this function for Optiva Workflows and Equations.

Purpose

Round a parameter value to a rule that is defined in the Rounding Rule form.

See the Infor PLM for Process Analysis Administration Guide.

Syntax


Dim variable As Long = RoundingRule(Value, Parameter, Param Value Rounding Code)

Example

This example shows rounding the value of the CALCIUM parameter using the parameter value rounding code of DCL1.


Dim CALCIUMVAL as Object = ObjProperty("VALUE.TPALL", "", "", "CA", 2)

MessageList("Calcium starting value = ", CALCIUMVAL) 

Dim CALCIUMROUNDED as Long = RoundingRule(CALCIUMVAL, "CA", "DCL1") 

MessageList("Calcium is rounded to = ", CALCIUMROUNDED)