From: Kenta Murata Date: 2010-08-01T22:10:13+09:00 Subject: [ruby-core:31583] [Bug #3640] BigDecimal#hash returns -2 for all negative finite numbers. Issue #3640 has been updated by Kenta Murata. Sorry, the code I've shown is improper. The proper code is here: $ ruby -rbigdecimal -ve ' a = [] b = BigDecimal("-1") 10.times { a << (b *= 10).hash } p a' ruby 1.9.3dev (2010-08-01 trunk 28823) [x86_64-darwin10.4.0] [-2, -2, -2, -2, -2, -2, -2, -2, -2, -2] ---------------------------------------- http://redmine.ruby-lang.org/issues/show/3640 ---------------------------------------- http://redmine.ruby-lang.org