Convert float to interger?
#5

Also another method to get rid of the decimals would be to do this...

Код:
format(string, sizeof(string), "Your distance is %.0f meters.", pMeters[playerid]);
That will make it so there are zero decimals. With this method, you can choose how many decimals you want.
Reply


Messages In This Thread
Convert float to interger? - by Dark_Kostas - 17.01.2010, 09:52
Re: Convert float to interger? - by RyDeR` - 17.01.2010, 09:54
Re: Convert float to interger? - by xxmitsu - 17.01.2010, 09:55
Re: Convert float to interger? - by Dark_Kostas - 17.01.2010, 09:58
Re: Convert float to interger? - by Celson - 17.01.2010, 14:09

Forum Jump:


Users browsing this thread: 2 Guest(s)