Project

General

Profile

Actions

Bug #1720

closed

[NaN] == [NaN] が true になる

Added by tadf (tadayoshi funaba) over 15 years ago. Updated about 7 years ago.

Status:
Closed
Target version:
ruby -v:
ruby 1.9.2dev (2009-07-03 trunk 23945) [i686-linux]

Description

=begin
NaN = 0.0/0
[NaN] == [NaN] が true になりますが、

NaN == NaN #=> false
[1] == [1.0] #=> true

という結果からするとおかしいように思います。
=end


Related issues 1 (0 open1 closed)

Has duplicate Ruby master - Bug #7676: Comparison of Float::NAN in array behaves unexpectedlyClosedmatz (Yukihiro Matsumoto)Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0