10 2013 档案
摘要:/** * 根据当前语言环境对数字进行本地化处理,如:es下的数字3.5应该为3,5 */ public static String numFormatByLanguage(double d) { NumberFormat nf = NumberFormat.getInstance(); // 若不需要分组符号,setGroupingUsed设置为false,默认为true nf.setGroupingUsed(false); String result = nf.format(d); return ...
阅读全文

浙公网安备 33010602011771号