2011/9/13 Marc-Andre Lafortune <ruby-core / marc-andre.ca>:
> Use `Float#rationalize` instead of `to_r`, and you will get the same result as `String#to_r`.
> I've argued before that `Float#to_r` should be `Float#rationalize`, though.

It is http://redmine.ruby-lang.org/issues/1408

-- 
NARUSE, Yui naruse / airemix.jp>