Add
AI-generatedOverview
This node performs basic arithmetic operations (addition, subtraction, multiplication, division) on two numbers provided as inputs. It is useful in scenarios where simple mathematical calculations are needed within an automation workflow, such as summing values, calculating differences, scaling numbers, or dividing quantities. For example, it can be used to add two financial figures, subtract expenses from income, multiply quantities for inventory management, or divide totals to find averages.
Use Case Examples
- Adding two numbers to calculate total sales.
- Subtracting costs from revenue to find profit.
- Multiplying unit price by quantity to get total cost.
- Dividing total distance by time to calculate speed.
Properties
| Name | Meaning |
|---|---|
| First Number | The first number (or dividend for division) |
| Second Number | The second number (or divisor for division) |
Output
JSON
result- The result of the arithmetic operation performed on the two input numbers
Troubleshooting
- Division by zero error: The node throws an error if the second number is zero during division to prevent invalid operations. Ensure the divisor is not zero before running the node.
- Unknown operation error: If an unsupported operation is specified, the node throws an error indicating the operation is unknown. Verify the operation input is one of add, subtract, multiply, or divide.