Answers for "how to round off double in kotlin"

3

Kotlin round double string

val number = 10.7086134
val rounded = String.format("%.3f", number) // rounds to 3 decimal places
Posted by: Guest on May-09-2020

Code answers related to "how to round off double in kotlin"

Browse Popular Code Answers by Language