How to remove useless "0" in a 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: How to remove useless "0" in a float (
/showthread.php?tid=618086)
How to remove useless "0" in a float -
NeXoR - 30.09.2016
How can I turn 0.500000 to 0.5 ?
Re: How to remove useless "0" in a float -
Kaliber - 30.09.2016
Just do instead of %f do %.1f
Re: How to remove useless "0" in a float -
NeXoR - 30.09.2016
thank you