I am using below code to round off the float result to an integer.
230.div(20.00).toFloat().roundToInt())
The above example gives me 11.5 roundng off to Int 12 but the same code is not rounding of 5.3 to 6
106.div(20.00).toFloat().roundToInt())
Is there any way to round off the float to highest i.e 5.3 to 6
The chosen answer is Java Math.ceil,
here it is in Kotlin (for floats)
import kotlin.math.ceil
val finalValue : Int = ceil(5.3f).toInt()