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



Printing Float - Daslee - 06.03.2012

Hello. I tried to make one thing in my server which needs Float, but when players try to check it, why they got 6 numbers after point? Something like: 0.100000 I want just simple: 0.1, but how i can do that?


Re: Printing Float - Konstantinos - 06.03.2012

Use
pawn Код:
%0.1f



Re: Printing Float - Daslee - 06.03.2012

Quote:
Originally Posted by Dwane
Посмотреть сообщение
Use
pawn Код:
%0.1f
Thanks.