From: Todd Benson Date: 2008-08-14T11:43:13+09:00 Subject: Re: case statement and ranges On Wed, Aug 13, 2008 at 9:34 PM, Joel VanderWerf wrote: > elliottcable wrote: >> >> I always throw this in my core_ext: >> >>> class Float >>> Infinity = 1.0/0.0 >>> end > > If it goes in core it should really be > > Infinity = 42/0.0 > > :) Infinity + Infinity => Infinity Infinity - Infinity => NaN Infinity + Infinity - Infinity => Nan Todd Todd