不要四舍五入,保留四位小数

double ee=(double)((int)(12.98879999*10000))/10000; System.out.println(ee);
相关文章
相关标签/搜索