This is an old revision of the document!
fstrval
Evaluate a string to a float value
Description
Float:fstrval( const str[], index=0 )
Evaluate the string, starting at the index
position for a float value
Parameters
str | source string |
index | start position in str |
Return value
Returns the value as a float
Example usage
new s{20}; new Float:x; strcopy(s, "Hello3.14"); c = fstrval(s, 5); // c now equals 3.14