//ERDDAP/com.cohort.util/ScriptMath2/doubleToFloatNaN
doubleToFloatNaN
[JVM]
fun doubleToFloatNaN(d: Double): Float
Safely converts a double to a float (including the non-standard conversion of large values to Float.NaN, not Float.POSITIVE_INFINITY).
Return
a float. If f is not finite or greater than Float.MAX_VALUE, this returns Float.NaN.