跳转到主内容

//ERDDAP/com.cohort.util/ScriptMath2/biggerDouble

biggerDouble

[JVM]
open fun biggerDouble(def: Double, mult: Double, max: Double, d: Double): Double

This increases d to the next multiple of mult.

Return​

the next multiple of mult bigger than d. It rounds to nearest mult, then changes it. If !Double.isFinite(d), it returns def.

Parameters​

JVM

defthe default value
multthe multiple
maxthe maximum value
dthe initial value