BigDecimal
class BigDecimal
Pure Kotlin arbitrary-precision signed decimal number backed by JavaScript BigInt.
Represents the value significand * 10^(-scale), mirroring java.math.BigDecimal. This is a custom implementation that may not cover every edge case of the platform decimal types used on other targets.
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun divide(other: BigDecimal, precision: Int = DECIMAL128_PRECISION, rounding: RoundingMode = RoundHalfEven): BigDecimal
Link copied to clipboard
fun multiply(other: BigDecimal, precision: Int = DECIMAL128_PRECISION, rounding: RoundingMode = RoundHalfEven): BigDecimal
Link copied to clipboard
fun pow(n: Int, precision: Int = DECIMAL128_PRECISION, rounding: RoundingMode = RoundHalfEven): BigDecimal
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard