From: Nikodemus Siivola Date: 2002-06-25T18:02:34+09:00 Subject: Re: No exceptions from String#to_i On Tue, 25 Jun 2002, Yukihiro Matsumoto wrote: > respectively [ruby-talk:43014], and Float() raises error if to_f > return NaN? Sounds decent, but isn't NaN technically a float? Also, since code that handles floats should also be able to handle NaNs, it might be simpler to just pass it along. Having it raise an error means that in some cases there will have to be handling for both the exception from Float() and handling for NaNs in general. Also, why handle Float() differently? If because there is no to_flt as of yet, then that holds for to_int as well... ;) -- Nikodemus