divide

fun divide(other: Decimal, roundingMode: RoundingMode): Decimal(source)

Divides this value by other and rounds the result to 9 fractional digits using roundingMode.

Throws ArithmeticException if other is zero or if the result is outside the representable range.