SA-MP Forums Archive
2 numbers after 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: 2 numbers after float? (/showthread.php?tid=174402)



2 numbers after float? - DiddyBop - 05.09.2010

i forget how to do this.. instead of making your pos come up like

-1432.345345345345, 0.00000, 0.00000

How can it come up like

0.0000 0.0000 0.0000? i THINK its
pawn Код:
%.4f
?


Re: 2 numbers after float? - Virtual1ty - 05.09.2010

It's actually %0.4f


Re: 2 numbers after float? - DiddyBop - 05.09.2010

Ok thanks


Re: 2 numbers after float? - Mauzen - 05.09.2010

%.4f should work too. Im using this quite often.