java截取小数点后两位
String a = "123.3445776";
int i = a.indexOf(".");
System.out.println(a.substring(0, i+3));
System.out.println(a.substring(i+3, a.length()));
String a = "123.3445776";
int i = a.indexOf(".");
System.out.println(a.substring(0, i+3));
System.out.println(a.substring(i+3, a.length()));