Kotlin Round Double to 2 Decimal Point. December 28, 2018. kotlin. val value = 3.14159265358979323 // round to 2 decimal: 3.14 "%.2f".format(value).
確定! 回上一頁