Skip to content

Math Operations ​

Performs arithmetic, statistical, trigonometric, or expression-based calculations and returns the numeric result.

Purpose ​

Use Math Operations any time a workflow needs to compute a value from numeric inputs — for example, calculating a percentage, incrementing a counter inside a loop, rounding a measurement to a required precision, or evaluating a complex multi-step formula in a single expression. Two modes are available: Traditional for discrete named operations, and Expression for free-form mathematical expressions.

Inputs ​

FieldTypeRequiredDescription
Operation ModeDropdownNoSelects the input style. Traditional exposes discrete operation and value fields. Expression exposes a free-text formula field. Defaults to Traditional.
ExpressionMulti-line TextNoA mathematical expression to evaluate. Supports standard operators and functions such as sqrt, abs, round, min, max, pow, sin, cos, tan, log, log10. Visible when Operation Mode is Expression.
OperationDropdownNoThe specific calculation to perform. Visible when Operation Mode is Traditional.
Value1TextNoFirst numeric operand. For Random, this is the minimum. For Clamp, this is the value to constrain. Visible when Operation Mode is Traditional.
Value2TextNoSecond numeric operand. Required for Add, Subtract, Multiply, Divide, Modulo, Power, Min, Max, PercentageOf, AsPercentageOf, and Random. Not used for single-operand operations. Visible when Operation Mode is Traditional.
PrecisionTextNoNumber of decimal places to round to. Visible when Operation is Round.
MinValueTextNoLower boundary for the Clamp operation. Visible when Operation is Clamp.
MaxValueTextNoUpper boundary for the Clamp operation. Visible when Operation is Clamp.

Visibility Rules ​

Expression is visible when Operation Mode is Expression. Operation, Value1, and Value2 are visible when Operation Mode is Traditional. Precision is visible when Operation is Round. MinValue and MaxValue are visible when Operation is Clamp.

Operations ​

OperationDescription
AddAdds Value1 and Value2.
SubtractSubtracts Value2 from Value1.
MultiplyMultiplies Value1 by Value2.
DivideDivides Value1 by Value2. Value2 must not be zero.
ModuloReturns the remainder of Value1 divided by Value2.
PowerRaises Value1 to the power of Value2.
SquareRootReturns the square root of Value1.
RoundRounds Value1 to the number of decimal places specified in Precision.
FloorReturns the largest integer less than or equal to Value1.
CeilingReturns the smallest integer greater than or equal to Value1.
AbsoluteReturns the absolute (non-negative) value of Value1.
MinReturns the smaller of Value1 and Value2.
MaxReturns the larger of Value1 and Value2.
ClampConstrains Value1 to the range defined by MinValue and MaxValue.
PercentageOfCalculates Value1 percent of Value2.
AsPercentageOfExpresses Value1 as a percentage of Value2. Value2 must not be zero.
RandomGenerates a random decimal number between Value1 (minimum) and Value2 (maximum).
SinReturns the sine of Value1 (in radians).
CosReturns the cosine of Value1 (in radians).
TanReturns the tangent of Value1 (in radians).
LogReturns the natural logarithm of Value1. Value1 must be positive.
Log10Returns the base-10 logarithm of Value1. Value1 must be positive.

Outputs ​

NameDescription
ResultThe numeric result of the calculation.

Examples ​

Add two values
FieldValue
Operation ModeTraditional
OperationAdd
Value110
Value23
Result13
Evaluate a compound expression
FieldValue
Operation ModeExpression
Expressionsqrt(16) + pow(2, 3)
Result12
Round to two decimal places
FieldValue
Operation ModeTraditional
OperationRound
Value110.05203
Precision2
Result10.05

Tentech