Skip to content

Math Operations

The Math Operations node performs arithmetic and mathematical operations between two numeric inputs or generates random numbers within a defined range.


Purpose

✅ Perform common mathematical calculations in workflows.
✅ Generate random numbers within a range.
✅ Support rounding of numeric values to a specific precision.


Inputs

Field LabelInput TypeDescription
Value1NumberThe first numeric input for the operation.
Value2NumberThe second numeric input for the operation.
OperationPicklistThe operation to perform. Supported options listed below.
PrecisionNumber(Required for Round) The number of decimal places to round to.

Supported Operations

  • Add – Adds Value1 and Value2.
  • Subtract – Subtracts Value2 from Value1.
  • Multiply – Multiplies Value1 by Value2.
  • Divide – Divides Value1 by Value2. Errors if Value2 is zero.
  • Modulo – Returns the remainder when Value1 is divided by Value2.
  • Round – Rounds Value1 to the specified Precision.
  • Random – Generates a random decimal number between Value1 and Value2.

Outputs

Output VariableDescription
ResultThe result of the mathematical operation.

Example Use Cases

✅ Calculate totals, differences, or multipliers in workflow data.
✅ Generate random numbers for sampling or randomisation logic.
✅ Round calculated values for currency or formatted display.


Notes

⚠️ For Divide, ensure Value2 is not zero to avoid runtime errors.
⚠️ For Round, Precision input is mandatory to define decimal places.


Tentech 2024