Salta al contenuto principale

//ERDDAP/com.cohort.util/ScriptMath2/narrowToShort

narrowToShort

[JVM]
fun narrowToShort(i: Int): Short

Safely narrows an int to a short.

Return

Short.MAX_VALUE if i is too small or too big; otherwise i.

Parameters

JVM

iany int

[JVM]
fun narrowToShort(i: Long): Short

Safely narrows a long to a short.

Return

Short.MAX_VALUE if i is too small or too big; otherwise i.

Parameters

JVM

iany long