From: Timothy Goddard Date: 2006-07-23T08:00:10+09:00 Subject: Re: Infinity Others have answered the main question here but it's worth noting for the future that just because it says infinity doesn't mean a constant exists with that name. Check this out: irb(main):001:0> class A; end => nil irb(main):002:0> class B; end => nil irb(main):003:0> A, B = B, A (irb):3: warning: already initialized constant A (irb):3: warning: already initialized constant B => [B, A] irb(main):004:0> A => B irb(main):005:0> B => A The name is independent of constants. hadley wickham wrote: > irb(main):084:0> (-1.0/0.0) > => -Infinity > irb(main):086:0> (1.0/0.0) > => Infinity > > but > > irb(main):087:0> Infinity > NameError: uninitialized constant Infinity > from (irb):87 > from :0 > > is it possible to directly access/create a float representing positive > or negative infinity? > > Thanks, > > Hadley