sqrt() public method

The argument can be any valid expression as long as it resolves to a non-negative number.
See also: https://docs.mongodb.org/manual/reference/operator/aggregation/sqrt/
public sqrt ( mixed | self $expression )
$expression mixed | self
Beispiel #1
0
 /**
  * Calculates the square root of a positive number and returns the result as
  * a double.
  *
  * The argument can be any valid expression as long as it resolves to a
  * non-negative number.
  *
  * @see https://docs.mongodb.org/manual/reference/operator/aggregation/sqrt/
  * @see Expr::sqrt
  * @param mixed|Expr $expression
  * @return self
  */
 public function sqrt($expression)
 {
     $this->expr->sqrt($expression);
     return $this;
 }