SA-MP Forums Archive
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)
+--- Thread: Float (/showthread.php?tid=497499)



Float - KesaSport - 27.02.2014

why i get 0.00 with this code:
Код:
printf("skaicius %.2f\n", 3/2);



Re: Float - Lidor124 - 27.02.2014

Maybe try:
Quote:

printf("skaicius %.1f", 3/2);




Re: Float - amirab - 27.02.2014

i think cuz of this
PHP код:
3/
change it to something else like
PHP код:
3_2 



Re: Float - PowerPC603 - 27.02.2014

pawn Код:
printf("skaicius %.2f\n", 3.0 / 2.0);
You were dividing 2 integers.