//ERDDAP/com.cohort.util/ScriptMath2/hiDiv
hiDiv
[JVM]
open fun hiDiv(num: Int, den: Int): Int
open fun hiDiv(num: Long, den: Long): Long
A div that rounds up if den>0. e.g., 1/4 goes to 1; 4/4 goes to 1; den = 0 throws an exception.
Return
num/den, but rounded to the next larger (abs) int
Parameters
JVM
num | the numerator (a positive number) |
den | the denominator (a positive number) |