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
| 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 allows the user to control the sequence of variables used to create the output double value. |
| N1 | Double | A double value that can be used as the variable {N1} in the expression. |
| N2 | Double | A double value that can be used as the variable {N2} in the expression. |
| N3 | Double | A double value that can be used as the variable {N3} in the expression. |
| N4 | Double | A double value that can be used as the variable {N4} in the expression. |
| Result | Double | The output double value created by resolving the Expression. |