MongoDB request DSL • opensavvy.ktmongo.dsl.aggregation.operators • ArithmeticValueOperators • ceil
ceil
The smallest integer greater than or equal to the specified value.
If the value is null or NaN, it is returned unchanged.
Example
class Sensor(
val value: Double,
val maxBound: Double,
)
collection.aggregate()
.set {
Sensor::maxBound set ceil(of(Sensor::value))
}.toList()
External resources