float math

float math

float math 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 Result Value output port produces the numeric value resulting from the equation. The value updates whenever any of the input values change.

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, using the variables {N1} through {N4}, that is resolved to create the output value.
N1DoubleA value that can be used as the variable {N1} in the expression.
N2DoubleA value that can be used as the variable {N2} in the expression.
N3DoubleA value that can be used as the variable {N3} in the expression.
N4DoubleA value that can be used as the variable {N4} in the expression.
ResultDouble (read-only)The output value created by resolving the Expression.