Skip to main content

$divide

The $divide operator divides the first numeric value by the second numeric value.

Input

  • An array containing exactly two numeric values (dividend and divisor)

Output

  • The quotient of the two input values (first / second)

Examples

Basic Division

Result: 5.0

Field Value Division

Result: The average sales per customer

Decimal Division

Result: 5.25

Division by Zero Error

Result: Error (division by zero)