Remove Decimal Values - 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: Remove Decimal Values (
/showthread.php?tid=141581)
Remove Decimal Values -
VirSpectorX - 14.04.2010
I use a function GetVehicleSpeed (
http://forum.sa-mp.com/index.php?top...9266#msg899266) and i have a problem.
It usually generate decimal value (Such as 19.29384823190238901283878949 km/hour). How to change it into 19 km/hour?
Thx!
Re: Remove Decimal Values -
Simon - 14.04.2010
floatround(19.29384823190238901283878949) = 19..
Re: Remove Decimal Values -
VirSpectorX - 14.04.2010
Quote:
Originally Posted by Simon
floatround(19.29384823190238901283878949) = 19..
|
Thank you!