min

Common
inline fun min(a: UInt, b: UInt): UInt
inline fun min(a: ULong, b: ULong): ULong

Returns the smaller of two values.

Since Kotlin

1.5
fun min(a: Double, b: Double): Double
fun min(a: Float, b: Float): Float
inline fun min(a: Double, b: Double): Double
inline fun min(a: Float, b: Float): Float
inline fun min(a: Double, b: Double): Double
inline fun min(a: Float, b: Float): Float
fun min(a: Double, b: Double): Double
fun min(a: Float, b: Float): Float

Returns the smaller of two values.

If either value is NaN, then the result is NaN.

Since Kotlin

1.2
fun min(a: Int, b: Int): Int
fun min(a: Long, b: Long): Long
inline fun min(a: Int, b: Int): Int
inline fun min(a: Long, b: Long): Long
inline fun min(a: Int, b: Int): Int
inline fun min(a: Long, b: Long): Long
fun min(a: Int, b: Int): Int
fun min(a: Long, b: Long): Long

Returns the smaller of two values.

Since Kotlin

1.2