From: hal9000@... Date: 2000-12-20T08:10:02+09:00 Subject: [ruby-talk:7720] Re: "1_000".to_i == 1 bug? In article , Aleksi Niemel wrote: > Actually I'm not sure if this is bug, as it could be also a designed > feature, but: > > ruby -e'p "1_000".to_i' > 1 > > instead of 1000 what I'd expect. > [snip patch] Hmm. Just my opinion, but I don't consider this to be a bug. The range of values that Ruby can recognize in code is not necessarily the same as what it can recognize in a string. Just as, for example, there's no built-in way AFAIK to print a number with underscores. Hal -- Hal Fulton Sent via Deja.com http://www.deja.com/