Project

General

Profile

Actions

Bug #1645

closed

大きな数の比較で正しくない結果になることがある

Added by tadf (tadayoshi funaba) almost 15 years ago. Updated almost 13 years ago.

Status:
Closed
Assignee:
-
Target version:
ruby -v:
ruby 1.9.2dev (2009-06-17 trunk 23726) [i686-linux]
Backport:
[ruby-dev:38672]

Description

=begin
大きな数の比較で正しくない結果になることがある

main@192-20090617> inf = 1.0/0.0
#=> Infinity
main@192-20090617> inf <=> (Float::MAX.to_i*2)
#=> 0
=end


Related issues 1 (0 open1 closed)

Related to Backport187 - Backport #5319: Problem backporting [ruby-dev:38672] to 1.8.7p334Closedshyouhei (Shyouhei Urabe)Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0