CALC

The CALC function performs the specified mathematical calculation on the input.

Input

Number of Connections: 1
InputData TypeDescription
Input1Integer,Double,DecimalA number.

Output

OutputData TypeDescription
Output1Double,DecimalThe result.

Property

NameProperty TypeDescription
Calculationchoice The mathematical calculation to perform.

Add - addition
Subtract - subtraction
Divide - division
Multiply - multiplication
Mod - modulus
DataInteger,Double,DecimalThe constant to perform the mathematical calculation with.
Formulachoice Defines what order the input and Data property are to take in the equation.

Input first - The input is on the left side of the equation.
For example, if Formula is set to Subtract the equation performed will be:
input - Data

Data first - The Data is on the left side of the equation.
For example, if Formula is set to Subtract the equation performed will be:
Data - input
ScaleIntegerThe number of decimal places the result retains if the result is a Decimal.

Topic


Example

PropertyOutput
Input 150CalculationSubtract45
Data5
FormulaInput first
Scale0

PropertyOutput
Input 110CalculationDivide3.33
Data3
FormulaInput first
Scale2

PropertyOutput
Input 150CalculationMultiply150
Data3
FormulaInput first
Scale0