From: hanmac@... Date: 2017-11-01T08:56:19+00:00 Subject: [ruby-core:83631] [Ruby trunk Bug#1720] [NaN] == [NaN] が true になる Issue #1720 has been updated by Hanmac (Hans Mackowiak). @Eregon checkout the object id `Float::NAN.object_id != (0.0/0).object_id` while `NAN` is a constant, `(0.0/0)` returns a new object each time thats why your Array compare shows a difference ---------------------------------------- Bug #1720: [NaN] == [NaN] ��� true ��������� https://bugs.ruby-lang.org/issues/1720#change-67659 * Author: tadf (tadayoshi funaba) * Status: Closed * Priority: Normal * Assignee: mrkn (Kenta Murata) * Target version: 2.0.0 * ruby -v: ruby 1.9.2dev (2009-07-03 trunk 23945) [i686-linux] * Backport: 2.3: UNKNOWN, 2.4: UNKNOWN ---------------------------------------- =begin NaN = 0.0/0 [NaN] == [NaN] ��� true ��������������������� NaN == NaN #=> false [1] == [1.0] #=> true ������������������������������������������������������������������ =end -- https://bugs.ruby-lang.org/ Unsubscribe: