Math.gamma should return -∞ for -0.0 #658

Merged
merged 1 commit into from Apr 26, 2013

Projects

None yet

2 participants

@tychobrailleur
Contributor

The following ruby spec was failing for JRuby: https://github.com/rubyspec/rubyspec/blob/master/core/math/gamma_spec.rb#L14

This PR checks the sign for 0.0, and returns -∞ for negative 0.0.

@headius headius merged commit 03aed6c into jruby:master Apr 26, 2013

1 check passed

default The Travis build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment