hive 函数:取整和绝对值

文章目录

    • 1.取整函数
    • 2.绝对值

1.取整函数

   1.round 四舍五入
   2.ceil  向上取整
   3.floor 向下取整
1.round 四舍五入:
select round(9.4) as num;
--输出结果
num
9.0
select round(9.5) as num

你可能感兴趣的:(笔记,hql,大数据)