Kotlin round double string
fun main() {
val number = 3.14159
val roundedNumber = String.format("%.2f", number).toDouble()
println(roundedNumber)
}
fun main() {
val number = 3.14159
val roundedNumber = String.format("%.2f", number).toDouble()
println(roundedNumber)
}