SQL四舍五入及两种舍入2024-01-02 11:50:28round() 遵循四舍五入把原值转化为指定小数位数,如:round(1.45,0) = 1;round(1.55,0)=2floor()向下取整 如:floor(1.45)= 1,floor(1.55) = 1 ,floor(-1.45)= -2 ,floor(-1.55) = -2ceiling()向上取整 如:ceiling(1.45) = 2,ceiling(1.55)=2,ceiling(-1.45) = -1,ceiling(-1.55)=-1上一篇:jdbc.properties 包含多种数据库驱动链接的版本。下一篇:UESTC_最少花费 2015 UESTC Training for Dynamic Programming