stringintegertype-conversionsmalltalk

String to Integer Smalltalk


Pretty simple question I need to get an integer from the user and I only know how to get a string from them. So if there is a way to get an integer from the user or to convert the string to an integer please let me know.


Solution

  • Found it:

    '12345' asNumber.