Crystal 报表中的舍入数字 [英] Rounding numbers in Crystal report
问题描述
我有一个数据库表,我想为它生成一个 Crystal 报告只是为了显示数字,例如我有 11.7 我希望它在四舍五入到 12 时保持像 11.7.我不想要这个四舍五入.请帮忙!
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.0".
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
公式中的第二个选项,你可以给出格式,所以它需要1个小数.(查看上面的链接)
Second option in formula , you can give format, so it will take 1 decimal.(check in above link)
这篇关于Crystal 报表中的舍入数字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!