简体   繁体   English

水晶报表的十进制精度

[英]Crystal Report Decimal Precision

Following is a crystal report formula used in report. 以下是报表中使用的水晶报表公式。 The result coming as value with two decimal positions.For example, 3.24. 结果以带有两个小数位的值表示,例如3.24。 But the actual value consists 3 decimal points, as 3.245. 但是实际值包含3个小数点,即3.245。 I need to show 3 decimal value. 我需要显示3个十进制值。 Formula: 式:

totext(sum({SO_DELIVERY_RPRT_V.DISC_RATE})+{SO_DELIVERY_RPRT_V.DO_DISC_AMT})

How can I solve this? 我该如何解决?

Please try this, I guess it helps you, 请尝试一下,我想它可以帮助您,

totext((sum({SO_DELIVERY_RPRT_V.DISC_RATE})+{SO_DELIVERY_RPRT_V.DO_DISC_AMT}), 3)

The '3' in the above formula is what specifies the number of decimals. 上式中的“ 3”指定小数位数。 If you use '0', it will show no decimals. 如果使用“ 0”,它将不显示小数。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM