floor() public method

The expression can be any valid expression as long as it resolves to a number.
See also: https://docs.mongodb.org/manual/reference/operator/aggregation/floor/
Since: 1.3
public floor ( mixed | self $number )
$number mixed | self
示例#1
0
 /**
  * Returns the largest integer less than or equal to the specified number.
  *
  * The <number> expression can be any valid expression as long as it
  * resolves to a number.
  *
  * @see https://docs.mongodb.org/manual/reference/operator/aggregation/floor/
  * @see Expr::floor
  * @param mixed|Expr $number
  * @return self
  *
  * @since 1.3
  */
 public function floor($number)
 {
     $this->expr->floor($number);
     return $this;
 }