math方法(小数点两位数s四舍五入) math.ceil() 向上取整 math.floor() 向下取整 math.found() 四舍五入 保留两位小数四舍五入 double dd = Math.round(d100)/100.0; //整数,任何数与整数算都是整数,double dd = Math.round(d100)*0.01; //错误,double的特性输出的答案错误 system.out.println(dd);