From: Kurt Stephens Date: 2008-12-23T13:48:34+09:00 Subject: [ruby-core:20818] [Bug #922] Float == is false when should be true Issue #922 has been updated by Kurt Stephens. Perhaps Ruby should do what Common Lisp implementations have been doing: http://portal.acm.org/citation.cfm?id=989431 http://kurtstephens.com/files/p372-steele.pdf ftp://netlib.bell-labs.com/netlib/fp/gdtoa.tgz Perhaps the default Float#to_s formatting should not throw away necessary precision, so that: some_float == eval("#{some_float}") is always true. ---------------------------------------- http://redmine.ruby-lang.org/issues/show/922 ---------------------------------------- http://redmine.ruby-lang.org