DecimalFormat df = new DecimalFormat("0");
try{
System.out.println(df.format(Double.parseDouble(number)));
}catch(Exception e){
}
try{
System.out.println(df.format(Double.parseDouble(number)));
}catch(Exception e){
}

被折叠的 条评论
为什么被折叠?