Rational#to_i differs from MRI with negative denominator
--------------------------------------------------------
Key: JRUBY-2827
URL: http://jira.codehaus.org/browse/JRUBY-2827
Project: JRuby
Issue Type: Bug
Environment: JRuby 1.1.3, Windows XP, Java 1.6
Reporter: Daniel Berger
Assignee: Thomas E Enebo
MRI
{noformat}
irb(main):001:0> require 'rational'
=> true
irb(main):002:0> Rational(3, -4).to_i
=> -1
{noformat}
JRuby:
{noformat}
irb(main):001:0> require 'rational'
=> true
irb(main):002:0> Rational(3, -4).to_i
=> 0
{noformat}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
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