//ERDDAP/com.cohort.util/ScriptMath2/sign1
sign1
[JVM]
open fun sign1(i: Int): Int
This returns 1 for positive i's, -1 for negative i's, and 1 if i is 0 (i.e., 0 is treated as a positive number).
Return
1 for positive i's, -1 for negative i's, and 1 if i is 0 (i.e., 0 is treated as a positive number).
Parameters
JVM
i | an int |