Getting started
Rules Engine Widgets
Math Operation
5 min
purpose to perform mathematical and numerical operations on input values within a workflow this node allows you to calculate, compare, and manipulate numbers dynamically using built in operations or custom formulas — without the need for code problem statement workflows often require basic or complex math operations (like totals, averages, or rounding) performing these calculations manually or through code adds unnecessary complexity the math operation node provides a simple and visual way to perform calculations and return results directly into workflow variables requirements must accept numeric inputs or variables should support standard arithmetic and advanced math functions must allow specifying a target variable for result storage should support optional rounding to fixed decimals must display a real time preview of the calculated result use cases calculate totals or differences between values apply formulas like percentages, averages, or power normalize or round numerical data perform dynamic score or rating calculations convert data values before output or api calls outcome executes a mathematical operation between one or more numeric inputs and stores the computed result into a defined variable for use in subsequent workflow steps how to use 1\ drag & drop add the math operation node into your workflow canvas 2\ choose operation select the mathematical function you want to perform from the dropdown 3\ enter inputs provide your numeric inputs you can enter static numbers or use variables first input the first numeric value or variable second input the second numeric value or variable (if applicable) 4\ target variable set the name of the output variable where the result will be stored default result 5\ round decimals (optional) specify how many decimal places to round the result to leave empty for no rounding 6\ preview view a real time calculation example showing how your result will be evaluated node output output variable custom (e g , result, totalamount, mathresult)