简体   繁体   中英

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. But the actual value consists 3 decimal points, as 3.245. I need to show 3 decimal value. 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. If you use '0', it will show no decimals.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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