ezeio2:scriptref:fstrval

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
ezeio2:scriptref:fstrval [2019-11-18 22:43] – created andrehezeio2:scriptref:fstrval [2024-02-05 23:17] (current) andreh
Line 5: Line 5:
 === Description === === Description ===
  
-<code>Float:fstrval( const str[], index=0 )</code>+<code>Float:fstrval( const str[], index=0, limit=15 )</code>
  
 Evaluate the string, starting at the ''index'' position for a float value  Evaluate the string, starting at the ''index'' position for a float value 
 +Max ''limit'' characters will be evaluated, starting at the ''index'' position.
  
 === Parameters === === Parameters ===
Line 26: Line 27:
     strcopy(s, "Hello3.14");      strcopy(s, "Hello3.14"); 
          
-    = fstrval(s, 5);+    = fstrval(s, 5);
              
-    // now equals 3.14+    // now equals 3.14
 </code> </code>
  
 +<wrap hi>NOTE: requires firmware 24020101 or newer.</wrap>
  • ezeio2/scriptref/fstrval.1574116982.txt.gz
  • Last modified: 2019-11-18 22:43
  • by andreh