CR 2008 12.2
If I have an averaged value, calculated from a formula field that is less than the tradditional .5 barrier for rounding up, how can I round up the next whole number rather than rounding it down?
For example, I have 0.33 and I want it to be 1.0 and not 0.0
Somehow, need to incorporate the solution with the following snippet of code:
whileprintingrecords;
numbervar sumcnttwo;
numbervar cnttwo;
if cnttwo > 0 then sumcnttwo/cnttwo
ideas?
If I have an averaged value, calculated from a formula field that is less than the tradditional .5 barrier for rounding up, how can I round up the next whole number rather than rounding it down?
For example, I have 0.33 and I want it to be 1.0 and not 0.0
Somehow, need to incorporate the solution with the following snippet of code:
whileprintingrecords;
numbervar sumcnttwo;
numbervar cnttwo;
if cnttwo > 0 then sumcnttwo/cnttwo
ideas?