minus

operator fun Decimal.minus(value: Decimal): Decimal

Subtracts two Decimal.

Return

the Decimal that is the subtraction of the two provided decimals.

Parameters

value

the Decimal to subtract


fun Decimal.minus(value: Decimal, scale: Int): Decimal

Subtracts two Decimal to a given precision.

Return

the Decimal that is the subtraction of the two provided decimals.

Parameters

value

the Decimal to subtract

scale

The number of digits a rounded value should have after its decimal point.


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

Subtracts two Decimal to a given precision.

Return

the Decimal that is the subtraction of the two provided decimals.

Parameters

value

the Decimal to subtract

scale

The number of digits a rounded value should have after its decimal point.

roundingMode

The RoundingMode to apply when scaling.


infix operator fun KalugaDate.minus(other: KalugaDate): Duration

Gets the Duration between two KalugaDate

Return

the Duration between both dates.

Parameters

other

the KalugaDate to subtract


infix operator fun KalugaDate.minus(duration: Duration): KalugaDate

Gets a KalugaDate that is duration before this date.

Return

A KalugaDate that is duration before this date

Parameters

duration

the Duration to subtract from this date.