发布时间:2025-12-10 19:51:38 浏览次数:1
Oracle 中的四舍五入[亲测有效]函数:ROUND(number,[decimal_places])——number:要处理的数值;——decimal_places:四舍五入后,小数点后保留几位,可不写,默认为0;举例:–小数点后保留0位时:SQL>selectround(99.546)fromdual;ROUND(99.546)————-
函数:ROUND( number, [ decimal_places ] ) ——number : 要处理的数值; ——decimal_places :四舍五入后,小数点后保留几位,可不写,默认为0;-- 小数点后保留0位时:SQL> select round(99.546) from dual;ROUND(99.546)------------- 100-- 小数点后保留1位时:SQL> select round(99.546,1) from dual;ROUND(99.546,1)--------------- 99.5-- 小数点后保留2位时:SQL> select round(99.546,2) from dual;ROUND(99.546,2)--------------- 99.55-- 负数小数点后保留0位时:SQL> select round(-99.546) from dual;ROUND(-99.546)-------------- -100-- 负数小数点后保留1位时:SQL> select round(-99.546,1) from dual;ROUND(-99.546,1)---------------- -99.5 是否还在为Ide开发工具频繁失效而烦恼,来吧关注以下公众号获取最新激活方式。亲测可用!
【正版授权,激活自己账号】:Jetbrains全家桶Ide使用,1年售后保障,每天仅需1毛
【官方授权 正版激活】:官方授权 正版激活 自己使用,支持Jetbrains家族下所有IDE…