← Docs
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.

Stay in touch:
  • Contributing to Kotlin
  • Releases
  • Press Kit
  • Security
  • Blog
  • Issue Tracker
  • Brand assets
  • Careers
Supported and developed by JetBrains .
Kotlin™ is protected under the Kotlin Foundation
and licensed under the Apache 2 license .