round

fun Double.round(decimals: Int): Double

Extension function to round numbers after the decimal point which can be customized

Return

value

Parameters

decimals