FLOOR

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

Example:

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

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

Properties

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