From: Michael Campbell Date: 2002-09-15T09:02:57+09:00 Subject: Re: Time#+ and usec --- Michael Witrant wrote: > Hello, > > The following results look buggy. I tried with Ruby 1.6.7 and > 1.7.2. > > (Time.at(0) + .1).usec # => 100000 > (Time.at(0) + .2).usec # => 200000 > (Time.at(0) + .3).usec # => 299999 > (Time.at(0) + .4).usec # => 400000 Looks to me like your standard "base 10 numbers can't necessarily be represented exactly in a base 2 system" issue. ===== -- Use your computer to help find a cure for cancer: http://members.ud.com/projects/cancer/ Yahoo IM: michael_s_campbell __________________________________________________ Do you Yahoo!? Yahoo! News - Today's headlines http://news.yahoo.com