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

//ERDDAP/com.cohort.util/ScriptMath2/roundToShort

roundToShort

[JVM]
fun roundToShort(d: Double): Short

Safely rounds a double to a short.

Return

Short.MAX_VALUE 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