It seems that Ruby has a concept of infinity:

>> 1.0/0
=> Infinity
>> (1.0/0).class 
=> Float

I wish to return this value, but I can't quite figure out what Ruby's 
symbol for Infinity is.  I guess that I could write:

my_method
    ...
    return 1.0/0
end

But I'd rather do something like

my_method
    ...
    return Infinity
end

(Replace "Infinity" by the appropriate value).

Does anyone know what symbol Ruby uses for "Infinity"?

-- 
Daniel Carrera
Graduate Teaching Assistant.  Math Dept.
University of Maryland.  (301) 405-5137