oracle round() 保留小数点后的0 --------类似sum()

来源:互联网 发布:淘宝视频收费标准 编辑:程序博客网 时间:2024/05/22 00:25

问题:round()末尾0不显示? 现要求小数点后无论截取几位,末尾空的位置都用0补。


select round(25.900,2) from dual

结果:25.9    --问题:末尾0不显示


select round(25.974,4) from dual

结果:25.974


select round(25.900,4) from dual

结果:25.9


 select  trim(to_char(round(25.974,4),'999990.99999')) from dual

结果:25.97400

0 0