SA-MP Forums Archive
[SOLVED]How to display a float as an int ? - 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: [SOLVED]How to display a float as an int ? (/showthread.php?tid=420598)



[SOLVED]How to display a float as an int ? - tarik00555 - 05.03.2013

Here's the new command thank you guys once more !




Re: How to display a float as an int ? - Djole1337 - 05.03.2013

You always can use %.1f


Re : How to display a float as an int ? - Shidony - 05.03.2013

You need to use floatround

https://sampwiki.blast.hk/wiki/Floatround


Re: How to display a float as an int ? - Nathan_Taylor - 05.03.2013

https://sampforum.blast.hk/showthread.php?tid=192682


Re: How to display a float as an int ? - tarik00555 - 05.03.2013

Holy cow, three answers in like 0.0000003 seconds. Thi is an awesome comunity thank you guys!