Project

General

Profile

Actions

Bug #12249

closed

Math.gamma(-0.0) should return -Infinity

Added by Eregon (Benoit Daloze) over 8 years ago. Updated over 8 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.2.4p230 (2015-12-16 revision 53155) [i386-mingw32]
[ruby-core:74817]

Description

On Windows, Math.gamma(-0.0) returns +Infinity instead of -Infinity,
which is the correct result according to tgamma(3) and the behavior on other platforms.

Is this OK to fix in Ruby?
There is already a similar fix for #10642.


Related issues 1 (0 open1 closed)

Related to Ruby master - Bug #10642: 2.2: TestMath#test_gamma test failure (MinGW)Third Party's Issuenaruse (Yui NARUSE)Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0