Actions
Bug #4023
closedto_i pathological case in 1.8.7, 1.9.2
Status:
Rejected
Assignee:
-
Target version:
-
ruby -v:
ruby 1.8.7 (2010-01-10 patchlevel 249) [i486-linux]
Description
=begin
% /usr/bin/ruby -v
ruby 1.8.7 (2010-01-10 patchlevel 249) [i486-linux]
% /usr/bin/ruby -e "puts (4.55100).to_i"
455
% /usr/bin/ruby -e "puts (4.56100).to_i"
455
% /usr/bin/ruby -e "puts (4.57*100).to_i"
457
Also happens in 1.9.2 (2010-08-18) [i686-linux] (via http://tryruby.org/)
Should I really not expect (4.56*100).to_i to return 456?
=end
Actions
Like0
Like0Like0