import java.text.*; //格式化数字 public class number { public static void main(String args[]) { double d = 123456.78; DecimalFormat df = new DecimalFormat("###,###"); System.out.println(df.format(d)); } }
posted on 2016-06-12 14:55 nickTimer 阅读(596) 评论(0) 收藏 举报
博客园 © 2004-2025 浙公网安备 33010602011771号 浙ICP备2021040463号-3