float math

float math

The float math module provides a simple means to perform mathematical operations on numbers coming from up to 4 input ports. By using multiple float math modules, any number of values may be combined.

The default equation is N1 + N2 + N3 + N4, which adds all four input values. Any of the available mathematical operators may be used in the expression.

The output Result Value port produces the numeric value resulting from the equation. The value will update when any of the input values are changed.

Ports

DirectionNameTypeDescription
InputInput Value 1NumberA value to use as a variable.
InputInput Value 2NumberA value to use as a variable.
InputInput Value 3NumberA value to use as a variable.
InputInput Value 4NumberA value to use as a variable.
OutputOutput Value 1NumberA value to use as a variable.
OutputOutput Value 2NumberA value to use as a variable.
OutputOutput Value 3NumberA value to use as a variable.
OutputOutput Value 4NumberA value to use as a variable.
OutputResult ValueNumberA value created by solving the module expression.

Properties

PropertyTypeDescription
ExpressionStringThe Expression allows the user to control the sequence of variables used to create the output double value.
N1DoubleA double value that can be used as the variable {N1} in the expression.
N2DoubleA double value that can be used as the variable {N2} in the expression.
N3DoubleA double value that can be used as the variable {N3} in the expression.
N4DoubleA double value that can be used as the variable {N4} in the expression.
ResultDoubleThe output double value created by resolving the Expression.