Login

//ERDDAP/com.cohort.util/ScriptMath/scalb

scalb

[JVM]
open fun scalb(d: Double, scaleFactor: Int): Double

Returns d × 2scaleFactor rounded as if performed by a single correctly rounded floating-point multiply to a member of the double value set.

[JVM]
open fun scalb(f: Float, scaleFactor: Int): Float

Returns f × 2scaleFactor rounded as if performed by a single correctly rounded floating-point multiply to a member of the float value set.