BP
Size: a a a
BP
BP
BP
Kd
BP
BP
this.divide(other, RoundingMode.HALF_EVEN)
BP
BP
println("int ${ 10 / 8}")
println("double ${ 10.0 / 8.0}")
println("decimalFromDouble ${ 10.0.toBigDecimal() / 8.0.toBigDecimal()}")
println("decimalFromInt ${ 10.toBigDecimal() / 8.toBigDecimal()}")
BP
this.divide(other, RoundingMode.HALF_EVEN)
AN
AN
BP
BP
AN
BP
This rounding mode is analogous to the rounding policy used for float and double arithmetic in Java. This mode corresponds to the IEEE 754-2019 rounding attribute roundTiesToEven.
Kd
Kd
BP
BP
AN