DOWN

Rounding mode to round towards zero. Never increments the digit prior to a discarded fraction (i.e., truncates). Note that this rounding mode never increases the magnitude of the calculated value.

Example:

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

with `DOWN` rounding
5.5 5
2.5 2
1.6 1
1.1 1
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