divide() public méthode

The arguments can be any valid expression as long as the resolve to numbers.
See also: http://docs.mongodb.org/manual/reference/operator/aggregation/divide/
public divide ( mixed | self $expression1, mixed | self $expression2 )
$expression1 mixed | self
$expression2 mixed | self
Exemple #1
0
 /**
  * Divides one number by another and returns the result. The first argument
  * is divided by the second argument.
  *
  * The arguments can be any valid expression as long as the resolve to numbers.
  *
  * @see http://docs.mongodb.org/manual/reference/operator/aggregation/divide/
  * @see Expr::divide
  * @param mixed|Expr $expression1
  * @param mixed|Expr $expression2
  * @return self
  */
 public function divide($expression1, $expression2)
 {
     $this->expr->divide($expression1, $expression2);
     return $this;
 }