用到了DecimalFormat类
DecimalFormat myformat = new DecimalFormat("###,###.0000");//使用系统默认的格式
String srr = myformat.format(111111123456.12);srr的值为111.111.123.456.1200
用到了DecimalFormat类
DecimalFormat myformat = new DecimalFormat("###,###.0000");//使用系统默认的格式
String srr = myformat.format(111111123456.12);
被折叠的 条评论
为什么被折叠?