PDA

View Full Version : Need Calculation Suggestions!


RolandK
08-06-2009, 03:52 PM
Hi Everyone,

I am working on a financial program and I am having problems coming up with the right calculation string for using adding multiple values time a percentage of that value. EX: ((cash*Percentage)+(cash*Percentage)+(cash*Percent age)) etc. I tried this calculation and it validated OK but when I ran the software project I received an error message. All cash amounts are different and all percentages are different depending on the percentage of that cash amount you own. I have tried the formula above but keep getting errors.

Any suggestions?

Roland

TigerSoftware
08-06-2009, 05:52 PM
Hi Everyone,

I am working on a financial program and I am having problems coming up with the right calculation string for using adding multiple values time a percentage of that value. EX: ((cash*Percentage)+(cash*Percentage)+(cash*Percent age)) etc. I tried this calculation and it validated OK but when I ran the software project I received an error message. All cash amounts are different and all percentages are different depending on the percentage of that cash amount you own. I have tried the formula above but keep getting errors.

Any suggestions?

Roland

You have to play around with the braces some more. I had to do this with a calc myself.

Try (((cash * Percentage) + (cash * percentage)) + (cash * percentage))

Notice I grouped the two cash * percentage in the front.


Thomas

RolandK
08-07-2009, 12:20 AM
Thomas,

Thanks, I got the calculation to work and now I am trying to add subtraction and addition of other editors.
But, at least I have one of the tough calculations done.

Thanks again.

Roland