13 lines
313 B
Kotlin
13 lines
313 B
Kotlin
package kotlin
|
|
|
|
/**
|
|
* Returns {@code true} if the specified number is a
|
|
* Not-a-Number (NaN) value, {@code false} otherwise.
|
|
*/
|
|
fun Double.isNaN() = this != this
|
|
|
|
/**
|
|
* Returns {@code true} if the specified number is a
|
|
* Not-a-Number (NaN) value, {@code false} otherwise.
|
|
*/
|
|
fun Float.isNaN() = this != this |