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

Behavior of Jruby Math.cbrt(number) does not match MRI #645

Closed
d1egoaz opened this issue Apr 18, 2013 · 0 comments
Closed

Behavior of Jruby Math.cbrt(number) does not match MRI #645

d1egoaz opened this issue Apr 18, 2013 · 0 comments
Milestone

Comments

@d1egoaz
Copy link

@d1egoaz d1egoaz commented Apr 18, 2013

jruby
$ jruby -v

jruby 1.7.3 (1.9.3p385) 2013-02-21 dac429b on Java HotSpot(TM) 64-Bit Server VM 1.7.0_17-b02 [darwin-x86_64]

$ jruby -e "puts Math.cbrt(64)"

3.9999999999999996

ruby
$ ruby -v

ruby 1.9.3p385 (2013-02-06 revision 39114) [x86_64-darwin12.3.0]

$ ruby -e "puts Math.cbrt(64)"

4.0

Math.sqrt behaves the same way as MRI

@headius headius closed this in e520fd2 Apr 25, 2013
headius added a commit that referenced this issue Apr 25, 2013
Fix #645 by calling Java Math.cbrt directly.
headius added a commit that referenced this issue Apr 25, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

1 participant