Uwe Kubosch created JRUBY-6556:
----------------------------------

             Summary: BigDecimal divided by Rational gives nil in --1.9 mode
                 Key: JRUBY-6556
                 URL: https://jira.codehaus.org/browse/JRUBY-6556
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.6.7, JRuby 1.6.6, JRuby 1.7
         Environment: OS X Lion
jruby 1.6.6 (ruby-1.8.7-p357) (2012-01-30 5673572) (Java HotSpot(TM) 64-Bit 
Server VM 1.6.0_29) [darwin-x86_64-java]
jruby 1.6.7 (ruby-1.8.7-p357) (2012-02-22 3e82bc8) (Java HotSpot(TM) 64-Bit 
Server VM 1.6.0_29) [darwin-x86_64-java]
jruby 1.7.0.dev (ruby-1.9.3-p139) (2012-03-06 2ce4caf) (Java HotSpot(TM) 64-Bit 
Server VM 1.6.0_29) [darwin-x86_64-java]

            Reporter: Uwe Kubosch
            Priority: Blocker


Given the code:

{noformat}
require 'date'
e = Date.parse '2907-07-22'
require 'bigdecimal'
b = BigDecimal.new '1.0'
rd = e - Date.today
s = b / rd
{noformat}

s is 3.05798240436925e-06 in MRI and JRuby --1.8 mode and nil in JRuby --1.9 
mode.

Is this correct or is it a bug?


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.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


Reply via email to