Round decimals in report formula

左心房为你撑大大i 提交于 2019-12-02 11:10:54

问题


My Crystal Report needs to round numbers to two decimal points. I have tried Round(55.815, 2) but it returns 55.81 instead of 55.82. How can I resolve this?


回答1:


just try this if Remainder(55.815 ,1) > 0.5 then Floor (55.815) + Remainder(55.815 ,1) else Floor (55.815 )+ Remainder(55.815 ,1) This may be help you




回答2:


If you need to round the decimal for display purposes, simply use the "Decrease Decimals" icon:



来源:https://stackoverflow.com/questions/15462307/round-decimals-in-report-formula

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!