Core API – Kotlin Programming Language (original) (raw)
nextTowards
Returns the Double value nearest to this value in direction from this value towards the value to.
Special cases:
x.nextTowards(y)isNaNif eitherxoryareNaNx.nextTowards(x) == x
Since Kotlin
1.2
Returns the Double value nearest to this value in direction from this value towards the value to.
Special cases:
x.nextTowards(y)isNaNif eitherxoryareNaNx.nextTowards(x) == x
Since Kotlin
1.2
Returns the Float value nearest to this value in direction from this value towards the value to.
Special cases:
x.nextTowards(y)isNaNif eitherxoryareNaNx.nextTowards(x) == x
Since Kotlin
1.2
Returns the Double value nearest to this value in direction from this value towards the value to.
Special cases:
x.nextTowards(y)isNaNif eitherxoryareNaNx.nextTowards(x) == x
Since Kotlin
1.2
Returns the Float value nearest to this value in direction from this value towards the value to.
Special cases:
x.nextTowards(y)isNaNif eitherxoryareNaNx.nextTowards(x) == x
Since Kotlin
1.3
Returns the Double value nearest to this value in direction from this value towards the value to.
Special cases:
x.nextTowards(y)isNaNif eitherxoryareNaNx.nextTowards(x) == x
Since Kotlin
1.3
Returns the Double value nearest to this value in direction from this value towards the value to.
Special cases:
x.nextTowards(y)isNaNif eitherxoryareNaNx.nextTowards(x) == x
Since Kotlin
1.8
Returns the Double value nearest to this value in direction from this value towards the value to.
Special cases:
x.nextTowards(y)isNaNif eitherxoryareNaNx.nextTowards(x) == x
Since Kotlin
1.8