//ERDDAP/com.cohort.util/ScriptMath2/narrowToByte
narrowToByte
[JVM]
fun narrowToByte(i: Int): Byte
Safely narrows an int to a byte.
Return
Byte.MAX_VALUE if i is too small or too big; otherwise i.
Parameters
JVM
i | any int |
[JVM]
fun narrowToByte(i: Long): Byte
Safely narrows a long to a byte.
Return
Byte.MAX_VALUE if i is too small or too big; otherwise i.
Parameters
JVM
i | any long |