roundTo

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

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