Following code will work for coversion in Kotlin :
val floatValue = 12.642054 val parsedValue = ((floatValue * 10).toInt()).toFloat() / 10