roundToScale

fun roundToScale(value: Double, integerValued: Boolean): Double

Round the specified value upward to the next scale value.

Return

a number rounded upward to the next scale value.

Parameters

value

the value to be rounded.

integerValued

flag specified whether integer scale are used, otherwise double scale is used.