nextUp

Returns the Double value nearest to this value in direction of positive infinity.

expect fun Double.nextUp(): Double(source)
fun main() {
    val value = 2.5
    val next = value.nextUp()
    println("The next representable double after $value is $next")
}

Source