Rounding numbers in Crystal report

烈酒焚心 提交于 2019-12-31 03:14:09

问题


I have database table which i want to generate a Crystal report for it just to show the numbers as it is e.g i have 11.7 i want it to remain like 11.7 while it round to 12. I don't want this rounding . please help!


回答1:


It is very simple, just select the field to which you want to show two decimal places. Right click on the field go to format field-->go to number tab -->click on customize-->then in Decimal select "1.0".

http://www.crystalreportsbook.com/Forum/forum_posts.asp?TID=9338

Second option in formula , you can give format, so it will take 1 decimal.(check in above link)




回答2:


If the formula doesn't work then simply do as follow

right click on that filed --> format field --> number --> choose the format you want --> click ok

Check the images for the same



来源:https://stackoverflow.com/questions/22896138/rounding-numbers-in-crystal-report

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