二.数字函数
1.round 四舍五入
round(1.65);
2.cell 向上取整
cell(1.02)
输出:2
3.floor 向下取整
floor(-9.99)
输出:-10
4.truncate 截断
truncate(1.69999,1);
输出:1.6
5.mod 取余
select mod(10,3); 等于 select 10%3;
二.数字函数
1.round 四舍五入
round(1.65);
2.cell 向上取整
cell(1.02)
输出:2
3.floor 向下取整
floor(-9.99)
输出:-10
4.truncate 截断
truncate(1.69999,1);
输出:1.6
5.mod 取余
select mod(10,3); 等于 select 10%3;