In the Kotlin programming language, .toInt() rounds down. how do I round up instead?
>Solution :
You can use ceil(double x) to round any double to a higher value.
Or use roundToInt.
fun main() {
val x = 10.55f
val y: Int = x.roundToInt()
println("y = $y") // y = 11
}