RichUtils / pyxis.uzuki.live.richutilskt.utils / kotlin.Double / makeLimit

makeLimit

@JvmOverloads fun Double.makeLimit(min: Double = 0.0, max: Double = 0.0): Double

Adjust the given number so that it does not go out of range with given min, max

Parameters

min - Double

max - Double

Receiver
Double

Return
Double