Extensions for java.math.BigDecimal

Platform and version requirements: JVM (1.2)

dec

Enables the use of the unary -- operator for BigDecimal instances.

operator fun BigDecimal.dec(): BigDecimal
Platform and version requirements: JVM (1.0)

div

Enables the use of the / operator for BigDecimal instances.

operator fun BigDecimal.div(other: BigDecimal): BigDecimal
Platform and version requirements: JVM (1.2)

inc

Enables the use of the unary ++ operator for BigDecimal instances.

operator fun BigDecimal.inc(): BigDecimal
Platform and version requirements: JVM (1.0)

minus

Enables the use of the - operator for BigDecimal instances.

operator fun BigDecimal.minus(other: BigDecimal): BigDecimal
Platform and version requirements: JVM (1.0)

plus

Enables the use of the + operator for BigDecimal instances.

operator fun BigDecimal.plus(other: BigDecimal): BigDecimal
Platform and version requirements: JVM (1.0)

rem

Enables the use of the % operator for BigDecimal instances.

operator fun BigDecimal.rem(other: BigDecimal): BigDecimal
Platform and version requirements: JVM (1.0)

times

Enables the use of the * operator for BigDecimal instances.

operator fun BigDecimal.times(other: BigDecimal): BigDecimal
Platform and version requirements: JVM (1.0)

unaryMinus

Enables the use of the unary - operator for BigDecimal instances.

operator fun BigDecimal.unaryMinus(): BigDecimal

© 2010–2020 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/java.math.-big-decimal/index.html