From: Kenta Murata Date: 2010-05-06T12:37:38+09:00 Subject: [ruby-core:30042] Re: [Feature #1408] 0.1.to_r not equal to (1/10) Float#rationalize is added again at r27503. Please check that revision. On 2010/05/06, at 7:23, Marc-Andre Lafortune wrote: > Maybe a kind Japanese reader can provide the gist of [ruby-dev:41061] > to explain why was Float#rationalize removed? > > I would also appreciate opinions as to why it wouldn't be a net > improvement if to_r used the rationalize algorithm and some other > methods were provided for anyone wanting the value of the > representation (e.g. Float#representation which would return [sign, > mantissa, significand] and/or Float#representation_to_r would give the > rational corresponding to the internal representation of that float) > -- Kenta Murata OpenPGP FP = FA26 35D7 4F98 3498 0810 E0D5 F213 966F E9EB 0BCC E-mail: mrkn@mrkn.jp twitter: http://twitter.com/mrkn/ blog: http://d.hatena.ne.jp/mrkn/