Articles in this section

divide helper

Use {{divide}} to calculate the quotient of two numeric values—either from your record fields or from hard-coded values.

Usage

{{divide number1 number2}}
  • number1: A numeric field or string literal representing the dividend.

  • number2: A numeric field or string literal representing the divisor.

Examples

  1. Dividing two record fields 

    {{divide record.item1 record.item2}}

    If record.item1 is "33" and record.item2 is "11", this returns 3.

  2. Using hard-coded numbers 

    {{divide "2002" "100"}}

    Outputs 20.02.

  3. Combining a record field with a hard-coded value 

    {{divide record.total 3}}

    If record.total is 33, this yields 11.

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.