From: Todd Benson Date: 2008-02-08T19:19:46+09:00 Subject: Re: convert String to range On Feb 8, 2008 3:36 AM, Abir B. wrote: > Another question, what's the translation of infinite in ruby?? > thanks irb(main):001:0> 0 / 0.0 => NaN irb(main):002:0> 42 / 0.0 => Infinity irb(main):003:0> -42 / 0.0 => -Infinity You can also use the #nan? and #infinity? methods. AFAIK, this works only with Floats and BigDecimals. hth, Todd