-
From the General Operations
section of the action bar,
click Calculator
and drop it on the process diagram.
-
Click Calculator
, and from the shortcut menu, click .
The Calculator Editor appears.
-
From the Calculator Editor, begin entering your calculation in
the expression field by entering directly or by using any of the following methods:
-
To insert a declared parameter, select the parameter name from the
Parameters list.
-
To insert numbers or operators into your expression, use the numeric keyboard or
select an operator from the Operators list.
-
To insert a function into an expression, select the function from the
Functions list.
Note:
All trigonometric functions (for example, sin, cos, tan, sec, csc, cot) use
radians in their argument. All arc trigonometric functions (for example, acos, asin,
atan, acsc, asec, acot) return radian values.
Process Composer offers auto-completion as you type, based on available functions and parameters.
-
If you are entering multiple expressions, enter each expression on a separate line in
the expression field or separate the expressions by a semicolon.
-
Optional: Add comments to the expression by starting the line with the
// character.
- Optional:
Select Allow exceptional values (NaN, Infinity).
By default, the Calculator adapter stops and displays an error if any function or operator returns a real result with an
exceptional value. The exceptional values are Inf, -Inf, or NaN. If you click
Allow exceptional values (NaN, Infinity), the Calculator adapter proceeds and returns the exceptional value. Exceptional values can be stored as real
parameters and will appear in the Parameters panel.
-
When the expression is complete, click Calculate to run the
calculation and to display the result in the Status bar.
-
Click OK.
|