一:int 转float,在计算时使用
例如数据库定义字段为 wait_total 数据类型为 int
则 计算时 (wait_total+0.0)/num 得到的数据为小数
二 float 转int,
使用 round(54.56,0) 他是四舍五入取整截取
例:我使用到的 要计算百分比,四舍五入,返回的是个int值
round(((SUM(ps_wait_network_total)*100+0.0)/(case when SUM(ml_unmatch_total)=0 then 1 else SUM(ml_unmatch_total) end)),0) ps_wait_network_total_rate