W3cubDocs

/Kotlin

div

inline operator fun BigDecimal.div(
    other: BigDecimal
): BigDecimal

Platform and version requirements: JVM

Enables the use of the / operator for BigDecimal instances.

The scale of the result is the same as the scale of this (divident), and for rounding the RoundingMode.HALF_EVEN rounding mode is used.

© 2010–2018 JetBrains s.r.o.
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/java.math.-big-decimal/div.html