BigDecimal difference between JRuby and MRI

Hi all,

Is this a known issue?

rohit@rohit-dev:(1.9.3-p429)~$ ruby -v
ruby 1.9.3p429 (2013-05-15 revision 40747) [x86_64-linux]
rohit@rohit-dev:(1.9.3-p429)~$ irb
1.9.3p429 :001 > require ‘bigdecimal’
=> true
1.9.3p429 :002 >“0”)/0.0000001
=> #BigDecimal:2231138,‘0.0’,9(36)

rohit@rohit-dev:(1.7.4)~$ ruby -v
jruby 1.7.4 (1.9.3p392) 2013-05-16 2390d3b on Java HotSpot™ 64-Bit
Server VM 1.6.0_26-b03 [linux-amd64]
rohit@rohit-dev:(1.7.4)~$ irb
jruby-1.7.4 :001 > require ‘bigdecimal’
=> true
jruby-1.7.4 :002 >“0”)/0.0000001
=> #BigDecimal:14f4189a,‘NaN’,1(4)

Thanks, Rohit

This is the output I get on jruby-head:

require ‘bigdecimal’
=> true“0”)/0.0000001
=> #BigDecimal:4e1d4ae9,‘0.0’,1(4)

So jruby 1.7.5 will fix your issue.

Thanks Alex.

JRuby team, is there an eta for 1.7.5?

Thanks, Rohit