Remove Decimal Values
#1

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!
Reply
#2

floatround(19.29384823190238901283878949) = 19..
Reply
#3

Quote:
Originally Posted by Simon
floatround(19.29384823190238901283878949) = 19..
Thank you!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)