- Reference >
- Operators >
- Aggregation Framework Operators >
- Arithmetic Aggregation Operators
Arithmetic Aggregation OperatorsΒΆ
Name | Description |
---|---|
$add | Computes the sum of an array of numbers. |
$divide | Takes two numbers and divides the first number by the second. |
$mod | Takes two numbers and calculates the modulo of the first number divided by the second. |
$multiply | Computes the product of an array of numbers. |
$subtract | Takes an array that contains two numbers or two dates and subtracts the second value from the first. |