From: Martin DeMello Date: 2005-04-29T14:19:28+09:00 Subject: Re: Math::Infinity and Math::NaN Trans wrote: > Hi Martin, > > The new version of Facets (0.7) has an Infinity class. Of course due > to it's add-on nature it isn't fully integrated into the rest of the > Ruby class system (yet) we're working on it. I will consider also a NaN > class. Why classes? They're simply constants of type Float (defined in the IEEE standard), and ruby already does provide access to them, complete with pretty printing. It's just that it's a bit roundabout - e.g. you have to say a = 1.0/0 rather than a = Infinity. martin