Float:
#3

Quote:
Originally Posted by Marc_307
Hey guys,
the result of the function below should be a float. But I get one warning. Does anybody know how to solve that problem?
Thanks in advance!
Код:
stock sin(x){
	new Float:erg=x;
	for(new i=3,j=0;i<=max_i;i+=2,j++){
		if(j%2==0)erg-=pow(x,i)/factorial(i);
		if(j%2==1)erg+=pow(x,i)/factorial(i);
	}
	return erg;//warning 213: tag mismatch
}
pawn Код:
return _:erg;
Reply


Messages In This Thread
Float: - by Marc_307 - 04.03.2010, 19:02
Re: Float: - by dice7 - 04.03.2010, 19:04
Re: Float: - by smeti - 04.03.2010, 20:27

Forum Jump:


Users browsing this thread: 1 Guest(s)