max

fun <T : Number, Comparable<T>> max(a: T, b: T): T

Returns larger of the given values a and b.

Since

v2.0.0