我想把计算完的数值按四舍五入后显示
------解决方案--------------------
用round()
This expression returns 9.62:
Round(9.624, 2)
This expression returns 9.63:
Round(9.625, 2)
This expression returns 9.600:
Round(9.6, 3)
This expression returns -9.63:
Round(-9.625, 2)
This expression returns -10:
Round(-9.625, -1)
------解决方案--------------------
dec ls_sswr
ls_sswr=9.278
gwgz=round(ls_sswr,2)
结果:
gwgz=9.28