Answers for "Kotlin round double string"

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

Browse Popular Code Answers by Language