Taito pääsisältöön

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

numthe numerator (a positive number)
denthe denominator (a positive number)