在Crystal报表中四舍五入数字 [英] Rounding numbers in Crystal report

查看:85
本文介绍了在Crystal报表中四舍五入数字的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个数据库表,我想为其生成一个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

公式中的第二个选项,您可以指定格式,因此将小数点后一位。(在上面的链接中检查)

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

这篇关于在Crystal报表中四舍五入数字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆