1000 —–> 1000
10000 —–>万
100000 —–> 100000
1000000 —–>百万
谢谢
NumberFormat formatter = new DecimalFormat("#,###"); double myNumber = 1000000; String formattedNumber = formatter.format(myNumber); //formattedNumber is equal to 1,000,000
希望这可以帮助!