Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from Apr 26, 2013

Conversation

Projects
None yet
2 participants
@tychobrailleur
Copy link
Contributor

tychobrailleur commented Apr 26, 2013

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 added a commit that referenced this pull request Apr 26, 2013

Merge pull request #658 from tychobrailleur/gamma_zero
Math.gamma should return -∞ for -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
You can’t perform that action at this time.