Evaluate a string to a float value


Float:fstrval( const str[], index=0 )

Evaluate the string, starting at the index position for a float value


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
  • ezeio2/scriptref/fstrval.txt
  • Last modified: 2019-11-18 22:43
  • by andreh