ข้ามไปยังเนื้อหาหลัก

//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

iany 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

iany long