[Solved] Count problem - 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: [Solved] Count problem (
/showthread.php?tid=110088)
[Solved] Count problem -
godknightx - 24.11.2009
Hy
I have a very simple code, what is dont work
So, the code:
pawn Код:
new Float:szam;
szam = 10 / 4;
printf("Result: %f", szam);
I cant why, but its dont work... It say 2.000000
Okey, solved... 10 is an integer number, you need use 10.0
Re: [Solved] Count problem -
dice7 - 24.11.2009
pawn Код:
new Float:szam;
szam = 10.0 / 4.0;
printf("Result: %f", szam);
Integer division will always return an integer
Re: [Solved] Count problem -
godknightx - 25.11.2009
Quote:
Originally Posted by dice7
pawn Код:
new Float:szam; szam = 10.0 / 4.0; printf("Result: %f", szam);
Integer division will always return an integer
|
Thanx, but i said its solved.