percentile

fun percentile(values: LongArray, percentile: Double): Long

The percentile (0 to 100) of values, sorted in place; 0 when there are none.