val Double.ulp: Double
inline val Double.ulp: Double
Returns the ulp (unit in the last place) of this value.
An ulp is a positive distance between this value and the next nearest Double value larger in magnitude.
Special Cases:
NaN.ulp
is NaN
x.ulp
is +Inf
when x
is +Inf
or -Inf
0.0.ulp
is Double.MIN_VALUE
inline val Float.ulp: Float
val Float.ulp: Float
Returns the ulp of this value.
An ulp is a positive distance between this value and the next nearest Float value larger in magnitude.
Special Cases:
NaN.ulp
is NaN
x.ulp
is +Inf
when x
is +Inf
or -Inf
0.0.ulp
is Float.NIN_VALUE
© 2010–2020 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.math/ulp.html