Convert Text to Number
Intelligently converts text to a number (for example, “10%” to .10)
Parameters
- Text - The text that contains the number
- Number - Returned numerical value
- Fault - Returned as a non-zero fault code if no number is found
Example
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.
Comments
This command is only available with Simul8 Professional.