div
Divides two Decimal.
Return
the Decimal that is the division of the two provided decimals.
Parameters
value
the Decimal to divide
Divides two Decimal to a given precision.
Return
the Decimal that is the division of the two provided decimals.
Parameters
value
the Decimal to divide
scale
The number of digits a rounded value should have after its decimal point.
fun Decimal.div(value: Decimal, scale: Int, roundingMode: RoundingMode = RoundingMode.RoundHalfEven): Decimal
Divides two Decimal to a given precision.
Return
the Decimal that is the division of the two provided decimals.
Parameters
value
the Decimal to divide
scale
The number of digits a rounded value should have after its decimal point.
roundingMode
The RoundingMode to apply when scaling.