#1518 String to Integer

audie Sat 30 Apr 2011

Could anyone tell me how to take in an integer from a user and parse that string integer into an integer?

peter Sat 30 Apr 2011

Does this example http://rosettacode.org/wiki/User_input/Text#Fantom help?

Env.cur.in.readLine.toInt reads a line of input from the user and tries to convert it to an integer.

audie Sat 30 Apr 2011

Thanks much

Login or Signup to reply.