Math block
Purpose
This information concerns a series of blocks, that can do mathematical operations. Every block has a right and a left side of a given operation and will output the result of the operation. Possible operations:
- Sum (Addition)
- Subtract
- Multiply
- Divide
- Modulo
Note: Using Lodash_ functions for all math operations.
Input
-
Right Takes a number. The right side of the operation. Is forgotten after execution. Will not execute before the left side also has been set.
-
Left
Takes a number. The right side of the operation. Is forgotten after execution. Will not execute before the left side also has been set.
Output
- Value
Gives the result of the math operation. Can output a number or a decimal.
Example
I wish to calculate the following: 15 / 3 = ?
graph LR A([15]) --Right--> I(Divide) B([3]) --Left--> I I --Value--> C([5])
Caveats
- Make sure the left and right sides match the equation with division, subtraction, and modulo.