Convert Text to Number

Intelligently converts text to a number (for example, “10%” to .10)


  • Text - The text that contains the number
  • Number - Returned numerical value
  • Fault - Returned as a non-zero fault code if no number is found


End Run Logic
Convert Text to Number “42%”, lcl_Number, 0

The above code will therefore convert “42%” to .42, and store this value in the lcl_Number variable.


This command is only available with SIMUL8 Professional.