Issue Type: Bug Bug
Affects Versions: JRuby 1.7.0.pre2
Assignee: Unassigned
Components: Core Classes/Modules
Created: 30/Aug/12 3:54 PM
Description:

jruby Math.sqrt(Float::NAN) gives a Math::DomainError. MRI returns NaN.

$ jruby --version
jruby 1.7.0.preview2 (1.9.3p203) 2012-08-30 2900996 on Java HotSpot(TM) 64-Bit Server VM 1.7.0_06-b24 [darwin-x86_64]

$ jruby -e "p Math.sqrt(Float::NAN)"
Math::DomainError: Numerical argument is out of domain - "sqrt"
sqrt at org/jruby/RubyMath.java:494
(root) at -e:1

$ ruby --version
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin12.1.0]

$ ruby -e "p Math.sqrt(Float::NAN)"
NaN

Environment: Mac OSX 10.8
Project: JRuby
Priority: Minor Minor
Reporter: Colin Fuller
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
--------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

Reply via email to