Math with floats and integers
#2

pawn Код:
new
    currentBizPrice = eStats[i][bizPrice],
    bizTax = gStats[govPercentageBiz];
               
currentBizPrice = floatround((currentBizPrice * (bizTax / 100)));
If gStats[govPercentageBiz] is an integer, then why do you want to convert it to float? It is fine.
Reply


Messages In This Thread
Math with floats and integers - by Hansrutger - 25.12.2013, 17:48
Re: Math with floats and integers - by Konstantinos - 25.12.2013, 17:58
Re: Math with floats and integers - by Hansrutger - 25.12.2013, 18:35
Re: Math with floats and integers - by Konstantinos - 25.12.2013, 18:40
Re : Math with floats and integers - by [HRD]Mar1 - 25.12.2013, 18:41
AW: Math with floats and integers - by Nero_3D - 25.12.2013, 18:49

Forum Jump:


Users browsing this thread: 1 Guest(s)