Issue #1720 has been updated by Eregon (Benoit Daloze).


At least IEEE 754 has `NaN == NaN # => false`.

----------------------------------------
Bug #1720: [NaN] == [NaN] が true になる
https://bugs.ruby-lang.org/issues/1720#change-67637

* 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: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>