📅  最后修改于: 2022-03-11 14:53:34.235000             🧑  作者: Mango
val numberFormat = NumberFormat.getCurrencyInstance()
numberFormat.setMaximumFractionDigits(0);
val convert = numberFormat.format(1000000)
println(convert)
// result: $1,000,000