Thursday, January 2, 2014

Please help - calc percent in java


Hi ,

Please help me with this problem :

I whoul like to change the precent from *1.17 (17%) to calc of precent like this :

3% + 5% + 5$


For example :


The resault is 10$ - i want to get :


10$ +3%(0.3$) + 0.5% (0.51$) + 5$ = 15.81$


How i change this line to this calc

if(results[i].getSite()=='Xxx'&&XPrice==0)

{

XPrice =(results[i].getPrice() *1.17);

}

}


Please help me with this is very iportant to me


Thank you so much !



No comments:

Post a Comment