Project

General

Profile

Bug #12249

Math.gamma(-0.0) should return -Infinity

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

Status:
Closed
Priority:
Normal
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

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

Also available in: Atom PDF