Class ArithmeticOperators.Round

java.lang.Object
org.springframework.data.mongodb.core.aggregation.ArithmeticOperators.Round
All Implemented Interfaces:
AggregationExpression, MongoExpression
Enclosing class:
ArithmeticOperators

public static class ArithmeticOperators.Round extends Object
ArithmeticOperators.Round rounds a number to a whole integer or to a specified decimal place.
  • If place(int) resolves to a positive integer, $round rounds to the given decimal places.
  • If place(int) resolves to a negative integer, $round rounds to the left of the decimal.
  • If place(int) resolves to a zero, $round rounds using the first digit to the right of the decimal.
Since:
3.0