ezeio2:scriptref:fstrval

This is an old revision of the document!


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