📜  Kotlin 圆形双字符串 - Kotlin 代码示例

📅  最后修改于: 2022-03-11 14:53:34.255000             🧑  作者: Mango

代码示例1
val number = 10.7086134
val rounded = String.format("%.3f", number) // rounds to 3 decimal places