From: Sean Russell Date: 2002-05-30T13:44:00+09:00 Subject: Re: Infinity (?!) Phil Tomson wrote: > So, my question is, how can you determine if a variable contains Infinity: .... > Anyway to do that? Crap. I also forgot: (1.0/0.0).to_s #-> "Infinity" (-1.0/0.0).to_s #-> "-Infinity" (0.0/0.0).to_s #-> "NaN" so you could do string comparisons, if you wanted to. -- |.. I use vi rather than emacs because I refuse to use a text editor <|> that is larger than my kernel. /|\ -- SER /| |