//ERDDAP/com.cohort.util/ScriptMath2/roundToChar
roundToChar
[JVM]
fun roundToChar(d: Double): Char
Safely rounds a double to a char (treated as unsigned short).
Return
Character.MAX_VALUE if d is too small, too big, or NaN; otherwise d, rounded to the nearest char. Undesirable: d.5 rounds up for positive numbers, down for negative.
Parameters
JVM
d | any double |