hive中对数字处理(保留小数位,向上取整,向下取整)

保留小数位 round

select round(12.6784,2);
>>> 12.68

向下取整 floor

select floor(12.742); 
>>> 12

向上取整 ceil

select ceil(15.1232); 
>>> 16

猜你喜欢

转载自blog.csdn.net/weixin_43648241/article/details/109707742