java的double类型如何精确到一位小数?
java的double类型如何精确到一位小数?
//分钟转小时
vacationNum = (double)Math.round(vacationNum/60*10)/10.0;
overTimeNum = (double)Math.round(overTimeNum/60*10)/10.0;
依次类推:
精确到3位小数:
overTimeNum = (double)Math.round(overTimeNum/60*1000)/1000.0;
不积跬步无以至千里,不积小流无以成江海