Use {{divide}} to calculate the quotient of two numeric values—either from your record fields or from hard-coded values.
{{divide number1 number2}}
-
number1: A numeric field or string literal representing the dividend.
-
number2: A numeric field or string literal representing the divisor.
-
Dividing two record fields
{{divide record.item1 record.item2}}If
record.item1is"33"andrecord.item2is"11", this returns3. -
Using hard-coded numbers
{{divide "2002" "100"}}Outputs
20.02. -
Combining a record field with a hard-coded value
{{divide record.total 3}}If
record.totalis33, this yields11.
Tip
-
The result is a floating-point value when division is not even (e.g.,
10 / 3 = 3.3333). -
Dividing by zero (or a zero-like value) can cause errors or unexpected behavior.
-
Confirm your inputs are numeric or can be parsed as numeric.