मुख्य सामग्री पर जाएं

//ERDDAP/com.cohort.util/ScriptMath2/roundDiv

roundDiv

[JVM]
open fun roundDiv(num: Int, den: Int): Int

A div that rounds. Positive numbers only. e.g., 1/4 goes to 0; 3/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)