Float: - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Float: (
/showthread.php?tid=131716)
Float: -
Marc_307 - 04.03.2010
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
}
Re: Float: -
dice7 - 04.03.2010
Float
in(x)
Re: Float: -
smeti - 04.03.2010
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
}
|