SQL Server 四舍五入

 

 

int a,b;
Round(a/b,2);如果b>a结果总是0,晕了!
要改成这样的:
Round(a/cast(b as float),2);

原文地址:https://www.cnblogs.com/mindyou44/p/2836084.html