roundTo

fun roundTo(value: Double, scale: Double): Double(source)

This method returns the specified value rounded to the nearest integer multiple of the specified scale.

Return

rounded value

Parameters

value

number to be rounded

scale

defining the rounding scale