java数字(double/float)向上取整,向下取整,四舍五入时间:2025-01-26 17:51:23向上取整:(double a) 向下取整:(double a) 四舍五入取整:(double a) 例: (24.1)--> 25 (24.8)--> 24 (24.1)--> 24 (24.8)--> 25