From: Yukihiro Matsumoto Date: 2004-10-16T11:18:46+09:00 Subject: Re: "nan".to_f ? Hi, In message "Re: "nan".to_f ?" on Sat, 16 Oct 2004 05:54:36 +0900, furufuru@ccsr.u-tokyo.ac.jp (Ryo Furue) writes: | x = 0.0/0.0 #=> NaN | x.to_s #=> "NaN" | |*then* | | y = "NaN".to_f # y *should* be NaN. I agree that it's good to be so. The point is how I can implement that in portable way. I'm waiting someone to enlighten me the way to generate NaN portably, or that I can assume IEEE 754 for all the platforms. Maybe Gotoken is saying the latter in [ruby-talk:116791], but I'm not sure yet. matz.