decrement

fun decrement(decrease: Double = 1.0)(source)

Decrements the value of the variable by the amount supplied. Throws an IllegalArgumentException if the value is negative.

Parameters

decrease

The amount to decrease by. Must be non-negative.