Calculator icon

Calculator

Performs basic arithmetic operations (add, subtract, multiply, divide) on two numbers.

Multiply

AI-generated

Overview

This node performs basic arithmetic operations (addition, subtraction, multiplication, division) on two input numbers. It is useful in scenarios where simple mathematical calculations are needed within an automation workflow, such as calculating totals, differences, products, or quotients dynamically based on input data.

Use Case Examples

  1. Calculating the product of two numbers for financial or inventory calculations.
  2. Multiplying values extracted from previous nodes to generate new metrics.

Properties

Name Meaning
First Number The first number (or dividend for division) used in the arithmetic operation.
Second Number The second number (or divisor for division) used in the arithmetic operation.

Output

JSON

  • result - The result of the arithmetic operation performed on the two input numbers.

Troubleshooting

  • If the second number is zero during a division operation, the node throws an error 'Division by zero is not allowed.' to prevent invalid calculations.
  • An error 'Unknown operation' is thrown if an unsupported operation is specified, indicating a configuration issue.

Discussion