min

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

Returns the smaller of two values.

Since Kotlin

1.5

expect fun min(a: Double, b: Double): Double(source)
expect fun min(a: Float, b: Float): Float(source)

Returns the smaller of two values.

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

Since Kotlin

1.2

expect fun min(a: Int, b: Int): Int(source)
expect fun min(a: Long, b: Long): Long(source)

Returns the smaller of two values.

Since Kotlin

1.2
actual inline fun min(a: Double, b: Double): Double(source)
actual inline fun min(a: Float, b: Float): Float(source)

Returns the smaller of two values.

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

Since Kotlin

1.2

actual inline fun min(a: Int, b: Int): Int(source)
actual inline fun min(a: Long, b: Long): Long(source)

Returns the smaller of two values.

Since Kotlin

1.2
actual inline fun min(a: Double, b: Double): Double(source)
actual inline fun min(a: Float, b: Float): Float(source)

Returns the smaller of two values.

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

Since Kotlin

1.2

actual inline fun min(a: Int, b: Int): Int(source)
actual inline fun min(a: Long, b: Long): Long(source)

Returns the smaller of two values.

Since Kotlin

1.2
actual fun min(a: Double, b: Double): Double(source)
actual fun min(a: Float, b: Float): Float(source)

Returns the smaller of two values.

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

Since Kotlin

1.3

actual fun min(a: Int, b: Int): Int(source)
actual fun min(a: Long, b: Long): Long(source)

Returns the smaller of two values.

Since Kotlin

1.3
actual fun min(a: Double, b: Double): Double(source)
actual fun min(a: Float, b: Float): Float(source)

Returns the smaller of two values.

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

Since Kotlin

1.8

actual fun min(a: Int, b: Int): Int(source)
actual fun min(a: Long, b: Long): Long(source)

Returns the smaller of two values.

Since Kotlin

1.8
actual fun min(a: Double, b: Double): Double(source)
actual fun min(a: Float, b: Float): Float(source)

Returns the smaller of two values.

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

Since Kotlin

1.8

actual fun min(a: Int, b: Int): Int(source)
actual fun min(a: Long, b: Long): Long(source)

Returns the smaller of two values.

Since Kotlin

1.8