SQLSERVER 四舍五入 保留两位小数

enough

这家伙很懒,看起来一点都不萌 (=・ω・=)
- 使用 round () 函数,如 Round (@num,2) ,其中参数 2 表示 保留两位有效数字。
select ROUND(13.145926, 2);
13.150000
select len(13.145926)
select len(ROUND(13.145926, 2))