how to get a float of a string? - 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: how to get a float of a string? (
/showthread.php?tid=215498)
how to get a float of a string? -
Sascha - 23.01.2011
hi, I'd like to know whether it is possible (and if yes how) to get a float of a string..
I'm searching for a function similar to "strval" just for floats..
So the string1 is for example "1521.1634"
string 2 "2623.272343" and string 3 "1513.15136"
how could I get it into Float

, Float:y and Float:z?
Re: how to get a float of a string? -
blewert - 23.01.2011
https://sampwiki.blast.hk/wiki/Floatstr
Re: how to get a float of a string? -
Sascha - 23.01.2011
thanks