All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.korlibs.math.IsNanOrInfinite.kt Maven / Gradle / Ivy

There is a newer version: 6.0.0
Show newest version
package korlibs.math

///** Check if [this] floating point value is not a number or infinite */
//public fun Float.isNanOrInfinite(): Boolean = this.isNaN() || this.isInfinite()
///** Check if [this] floating point value is not a number or infinite */
//public fun Double.isNanOrInfinite(): Boolean = this.isNaN() || this.isInfinite()


fun Double.isNanOrInfinite() = this.isNaN() || this.isInfinite()

fun Float.isNanOrInfinite() = this.isNaN() || this.isInfinite()




© 2015 - 2025 Weber Informatics LLC | Privacy Policy