CEILING

Rounding mode to round towards positive infinity. If the result is positive, behaves as for RoundingMode.UP; if negative, behaves as for RoundingMode.DOWN. Note that this rounding mode never decreases the calculated value.

Example:

* * * * * * * * * * *
Rounding mode CEILING Examples
Input Number Input rounded to one digit

with `CEILING` rounding
5.5 6
2.5 3
1.6 2
1.1 2
1.0 1
-1.0 -1
-1.1 -1
-1.6 -1
-2.5 -2
-5.5 -5
*

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val value: Int