SA-MP Forums Archive
How to select first two number in 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 select first two number in float (/showthread.php?tid=658384)



How to select first two number in float - akib - 03.09.2018

How i can select 10.03 from 10.031256?


Re: How to select first two number in float - akib - 03.09.2018

Fixed, simply use %.2f instead of %f