From: Paul Brannan Date: 2002-09-14T04:59:20+09:00 Subject: Re: float precision On Sat, Sep 14, 2002 at 04:41:52AM +0900, Daniel Bretoi wrote: > Isn't that a dangerous pitfall? > > irb(main):001:0> a = 20020912.194220 > 20020912.19 > irb(main):002:0> a = a.to_s > "20020912.19" > > if it's all storered, shouldn't the whole number end up in the string? There's an RCR for this: http://www.rubygarden.org/article.php?sid=231 Paul