SA-MP Forums Archive
How get float number - 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 get float number (/showthread.php?tid=569403)



How get float number - Banditukas - 30.03.2015

Hi,

I need get from float number to simple number but not floatround like that numbers

9.8 - 9
9.7 - 9
9.1 - 9
9.556 - 9
9.665 - 9


100.9898 - 100

100.2255 - 100


Re: How get float number - CalvinC - 30.03.2015

Use floatround_floor to round downwards.
pawn Код:
floatround(9.8, floatround_floor);
https://sampwiki.blast.hk/wiki/Floatround_method