DecimalFormat myformat = new DecimalFormat(); myformat.applyPattern("##,###.00"); System.out.println(myformat.format(11112345.12345));
模式匹配就行了啊、楼上回答的就可以