Re: Please help - calc percent in java

First, check your percentages. 3% is 3/100 or .03 and 5% is 5/100 or .05. It sounds like you want 17% of 10 to be the same as some x% of 10 + y% of 10 + 5. But that makes x and y arbitrary values and they could be anything. So I am not really certain what you are asking for.

Re: Please help - calc percent in java

Even if you fix the value of Z, the values of X and Y can take on many different values and still get the same result. So either I am not understanding something or you need to provide more information. And the following syntax does not make sense to me.