Divides one number by another and returns the result. Pass the arguments to
$dividein an array.
$divideexpression has the following syntax:
The first argument is the dividend, and the second argument is the divisor; i.e. the first argument is divided by the second argument.
planning collection with the following documents:
The following aggregation uses the
$divide expression to divide the
hours field by a literal
8 to compute the number of work days:
The operation returns the following results: