ulp
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.ulpis- NaN
- x.ulpis- +Infwhen- xis- +Infor- -Inf
- 0.0.ulpis- Double.MIN_VALUE
Since Kotlin
1.2Returns 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.ulpis- NaN
- x.ulpis- +Infwhen- xis- +Infor- -Inf
- 0.0.ulpis- Double.MIN_VALUE
Since Kotlin
1.2Returns 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.ulpis- NaN
- x.ulpis- +Infwhen- xis- +Infor- -Inf
- 0.0.ulpis- Float.NIN_VALUE
Since Kotlin
1.2Returns 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.ulpis- NaN
- x.ulpis- +Infwhen- xis- +Infor- -Inf
- 0.0.ulpis- Double.MIN_VALUE
Since Kotlin
1.2Since Kotlin
1.3Returns 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.ulpis- NaN
- x.ulpis- +Infwhen- xis- +Infor- -Inf
- 0.0.ulpis- Double.MIN_VALUE