RoundingMode

Rounding mode constants for KBigDecimal operations. These constants define how rounding should be performed when precision must be reduced.

Properties

Link copied to clipboard
const val CEILING: Int = 2

Rounding mode to round towards positive infinity

Link copied to clipboard
const val DOWN: Int = 1

Rounding mode to round towards zero

Link copied to clipboard
const val FLOOR: Int = 3

Rounding mode to round towards negative infinity

Link copied to clipboard
const val HALF_DOWN: Int = 5

Rounding mode to round towards the nearest neighbor, with ties rounded down

Link copied to clipboard
const val HALF_EVEN: Int = 6

Rounding mode to round towards the nearest neighbor, with ties rounded to the even neighbor

Link copied to clipboard
const val HALF_UP: Int = 4

Rounding mode to round towards the nearest neighbor, with ties rounded up

Link copied to clipboard
const val UNNECESSARY: Int = 7

Rounding mode to assert that the requested operation has an exact result

Link copied to clipboard
const val UP: Int = 0

Rounding mode to round away from zero