Math Op
Performs a mathematical operation on two numbers.
Performs a mathematical operation on two numbers, op1 and op2, based on the selected operator.
The operation is performed as op1 (operator) op2.
Operators#
| Operator | Name | Description |
|---|---|---|
+ |
Addition | Adds op1 and op2. |
- |
Subtraction | Subtracts op2 from op1. |
× |
Multiplication | Multiplies op1 by op2. |
÷ |
Division | Divides op1 by op2. |
Note: Division by zero will result in an error or an infinity/NaN value.
Inputs#
| Port | Description |
|---|---|
| The first operand. | |
| The arithmetic operator to use. | |
| The second operand. |
Outputs#
| Port | Description |
|---|---|
| The result of the operation. |
ID: core/math-op@v1