max

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

Returns the greater of two values.

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

Since Kotlin

1.2

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

Returns the greater of two values.

Since Kotlin

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

Returns the greater of two values.

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

Since Kotlin

1.2

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

Returns the greater of two values.

Since Kotlin

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

Returns the greater of two values.

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

Since Kotlin

1.2

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

Returns the greater of two values.

Since Kotlin

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

Returns the greater of two values.

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

Since Kotlin

1.3

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

Returns the greater of two values.

Since Kotlin

1.3