NegativeInfinity

Decimal representing Negative Infinity

Functions

Link copied to clipboard
open operator override fun compareTo(other: Decimal): Int
Link copied to clipboard
operator fun Decimal.div(value: Decimal): Decimal

Divides two Decimal.

fun Decimal.div(value: Decimal, scale: Int): Decimal
fun Decimal.div(value: Decimal, scale: Int, roundingMode: RoundingMode = RoundingMode.RoundHalfEven): Decimal

Divides two Decimal to a given precision.

Link copied to clipboard
operator fun Decimal.minus(value: Decimal): Decimal

Subtracts two Decimal.

fun Decimal.minus(value: Decimal, scale: Int): Decimal
fun Decimal.minus(value: Decimal, scale: Int, roundingMode: RoundingMode = RoundingMode.RoundHalfEven): Decimal

Subtracts two Decimal to a given precision.

Link copied to clipboard
operator fun Decimal.plus(value: Decimal): Decimal

Adds two Decimal together.

fun Decimal.plus(value: Decimal, scale: Int): Decimal
fun Decimal.plus(value: Decimal, scale: Int, roundingMode: RoundingMode = RoundingMode.RoundHalfEven): Decimal

Adds two Decimal together scaled to a given precision.

Link copied to clipboard
infix fun Decimal.pow(n: Int): Decimal

Raises two Decimal.

fun Decimal.pow(n: Int, scale: Int): Decimal
fun Decimal.pow(n: Int, scale: Int, roundingMode: RoundingMode = RoundingMode.RoundHalfEven): Decimal

Raises two Decimal to a given precision.

Link copied to clipboard
fun Decimal.round(scale: Int, roundingMode: RoundingMode = RoundingMode.RoundHalfEven): Decimal

Rounds a Decimal to a scale.

Link copied to clipboard
operator fun Decimal.times(value: Decimal): Decimal

Multiplies two Decimal.

fun Decimal.times(value: Decimal, scale: Int): Decimal
fun Decimal.times(value: Decimal, scale: Int, roundingMode: RoundingMode = RoundingMode.RoundHalfEven): Decimal

Multiplies two Decimal to a given precision.

Link copied to clipboard

Gets the double value of a Decimal

Link copied to clipboard

Gets the integer value of a Decimal

Link copied to clipboard

Gets the long value of a Decimal

Link copied to clipboard

Gets the string value of a Decimal