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
| Direction | Name | Type | Description |
|---|---|---|---|
| Input | Input Value 1 | Number | A value to use as a variable. |
| Input | Input Value 2 | Number | A value to use as a variable. |
| Input | Input Value 3 | Number | A value to use as a variable. |
| Input | Input Value 4 | Number | A value to use as a variable. |
| Output | Output Value 1 | Number | A value to use as a variable. |
| Output | Output Value 2 | Number | A value to use as a variable. |
| Output | Output Value 3 | Number | A value to use as a variable. |
| Output | Output Value 4 | Number | A value to use as a variable. |
| Output | Result Value | Number | A value created by solving the module expression. |
Properties
| Property | Type | Description |
|---|---|---|
| Expression | String | The expression, using the variables {N1} through {N4}, that is resolved to create the output value. |
| N1 | Double | A value that can be used as the variable {N1} in the expression. |
| N2 | Double | A value that can be used as the variable {N2} in the expression. |
| N3 | Double | A value that can be used as the variable {N3} in the expression. |
| N4 | Double | A value that can be used as the variable {N4} in the expression. |
| Result | Double (read-only) | The output value created by resolving the Expression. |