SA-MP Forums Archive
Converting string to 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Converting string to float? (/showthread.php?tid=195508)



Converting string to float? - Celson - 02.12.2010

So let's say the string is '0.7'. I know it's possible to convert a string to an integer. But is it possible to convert a string to a float?


Re: Converting string to float? - JamesC - 02.12.2010

floatstr( const string[ ] )

Search before posting?


Re: Converting string to float? - Celson - 02.12.2010

Negative. Oh well, no harm done. Thanks for the help mate.