round

fun Double.round(decimals: Int): Double

Round to decimals places. If decimals is negative, rounds to the desired power of 10; so round(-2) will round to the nearest hundred.