From: Tanaka Akira Date: 2013-04-03T21:15:49+09:00 Subject: [ruby-core:53961] Re: [ruby-trunk - Bug #7829] Rounding error in Ruby Time 2013/2/22 David MacMahon : > What do people thing about changing num_exact() in time.c to call #rationalize for Floats rather than #to_r? Or perhaps call #rationalize on the object if it responds to #rationalize so that this won't be exclusive to Floats? I'm not sure Float#rationalize is good choice. At least, I don't understand the behavior and the document don't explain the behavior. The document describes eps is choosen automatically. I think it is not enough explanation. -- Tanaka Akira