Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Rounding issue- Crystal Reports XI Release 2 Post Reply Post New Topic
Author Message
shamrock31
Newbie
Newbie


Joined: 21 Jul 2011
Online Status: Offline
Posts: 5
Quote shamrock31 Replybullet Topic: Rounding issue- Crystal Reports XI Release 2
     Posted: 02 Aug 2012 at 5:53am
Hello all, I have a rounding issue. I have a report which creates 12 rows of data, each row calculated with the following formula:

truncate((truncate(round({Command.TAXABLE_KMS}/{Command.KILO_PER_LITRE}), 0) - {Command.TAX_PAID_LITRES_PURCHASED}), 0) * {Command.TAX_RATE}

Which creates these twelve rows:
 3,346.57
 3,029.03
     22.18
 1,658.43
       2.77
    380.38
    419.19
    121.51
      -4.47
    203.90
    709.02
    196.50

Now, I want to find a total of these values, which is 10085.01, but when I do a simple Sum, it gives me a total of 10085.00. Iis there anyway to have it just calculate from the numbers showing, rather then from the formula calculating each row??


Edited by shamrock31 - 02 Aug 2012 at 5:55am
IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3702
Quote hilfy Replybullet Posted: 02 Aug 2012 at 8:45am
Since you're only showing two decimal places, have you tried rounding the results of the formula to that?  Then, when you sum the values you should get consistent numbers.
 
-Dell
IP IP Logged
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum