Daniel Harple wrote:
> On May 12, 2006, at 3:53 AM, corey konrad wrote:
> 
>> oh ok that makes sense, isnt there a getn method for getting number or
>> other data types or do i always have to use gets?
> 
> You can use scanf:
> 
> require 'scanf'
> scanf("%d") # -> [10]
> scanf("%f") # -> [10.0]
> 
> -- Daniel


hmm i cant find a description of scanf in the documentation for some 
reason.

-- 
Posted via http://www.ruby-forum.com/.