From: eregontp@... Date: 2016-04-05T19:16:58+00:00 Subject: [ruby-core:74821] [Ruby trunk Bug#12249] Math.gamma(-0.0) should return -Infinity Issue #12249 has been updated by Benoit Daloze. Nobuyoshi Nakada wrote: > Applied in changeset r54492. > > ---------- > math.c: fix tgamma > > * math.c (ruby_tgamma): fix tgamma(-0.0) on mingw. > [ruby-core:74817] [Bug #12249] Thanks nobu! ---------------------------------------- Bug #12249: Math.gamma(-0.0) should return -Infinity https://bugs.ruby-lang.org/issues/12249#change-57948 * Author: Benoit Daloze * Status: Closed * Priority: Normal * Assignee: * ruby -v: ruby 2.2.4p230 (2015-12-16 revision 53155) [i386-mingw32] * Backport: 2.1: REQUIRED, 2.2: REQUIRED, 2.3: REQUIRED ---------------------------------------- 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. -- https://bugs.ruby-lang.org/ Unsubscribe: