kotlin-stdlib / kotlin.math / nextUp nextUp Common JVM JS Native 1.2 fun Double . nextUp ( ) : Double (Common source) (JVM source) (JS source) (Native source) Returns the Double value nearest to this value in direction of positive infinity. JVM Native 1.2 fun Float . nextUp ( ) : Float (JVM source) (Native source) Returns the Float value nearest to this value in direction of positive infinity.