From: Jack Dempsey Date: 2002-01-13T02:09:36+09:00 Subject: RE: I/O gets and integers Unless you changed the behavior of gets itself, I believe it'll always return a string. You could then write a small function to check the type and use .to_i yourself though Jack -----Original Message----- From: linas [mailto:geek@spunge.org] Sent: Saturday, January 12, 2002 11:26 AM To: ruby-talk ML; undisclosed-recipients: Subject: I/O gets and integers Whenever i use gets to retireve user input, it always retrieves it as a string. Is there anyway that it can be retireved as an integer (or real number)? -linas