How to reduce decimal places in float numbers? - 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: How to reduce decimal places in float numbers? (
/showthread.php?tid=151980)
How to reduce decimal places in float numbers? -
Mr.Z - 01.06.2010
How to reduce decimal places in float numbers?
Sample: 1.860795 to 1.8
Thanks
Re: How to reduce decimal places in float numbers? -
Nero_3D - 01.06.2010
%x.xf what you want %.1f
Re: How to reduce decimal places in float numbers? -
Mr.Z - 01.06.2010
Thanks man