[ruby-core:78255] [Ruby trunk Bug#3648][Closed] Bignum Incomparable with Float::INFINITY
From:
hsbt@...
Date:
2016-11-22 11:40:10 UTC
List:
ruby-core #78255
Issue #3648 has been updated by Hiroshi SHIBATA. Status changed from Assigned to Closed ---------------------------------------- Bug #3648: Bignum Incomparable with Float::INFINITY https://bugs.ruby-lang.org/issues/3648#change-61619 * Author: Run Paint Run Run * Status: Closed * Priority: Normal * Assignee: * ruby -v: ruby 1.9.3dev (2010-07-12 trunk 28620) [i686-linux] * Backport: ---------------------------------------- =begin >> 2**7 > Float::INFINITY => false >> 2**79 > Float::INFINITY => -1 >> 2**79 < Float::INFINITY => -1 >> big = 2**77889 >> big.is_a? Bignum => true >> big == Float::INFINITY => true =end -- https://bugs.ruby-lang.org/ Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>