Μετάβαση στο κύριο περιεχόμενο

//ERDDAP/com.cohort.util/ScriptMath2/roundToUShort

roundToUShort

[JVM]
fun roundToUShort(d: Double): Int

Safely rounds a double to a ushort.

Return

0xffff if d is too small, too big, or NaN; otherwise d, rounded to the nearest short. Undesirable: d.5 rounds up for positive numbers, down for negative.

Parameters

JVM

dany double