Skip to Content
0
Former Member
Dec 11, 2008 at 07:35 AM

Rounding values do not balance to final figure

14 Views

Hi all,

Please assist me with the following.

I have the following values:

5.7

4.3

4.3

If these values are rounded, the total value is 14.

The values should not be more than 13.

That would mean to round the values, and before the last value is passed, to subtract from 13.

Last value would than be 3, and not 4.

How to code for this, I require help.

Many thanks.