From: "Stephan Kämper" Date: 2004-10-13T01:49:37+09:00 Subject: Re: "nan".to_f ? Mikael Brockman wrote: >> Yes, but his point is that "NaN" _is_ the string representation of >>valid floating point value, defined and handled by the system, with >>standardized semantics, etc. >> "NaN".to_f should return NaN. How else are you going to reliably >>get NaN if you need it? When would you *need* NaN in the first place? To show the the result of some calculation is NaN? The just return that calculation. To test whether something is NaN? -> There's Float#nan? to do that. > > 0.0/0.0? :-) Happy rubying Stephan