![]() |
|
|
Issue Type:
|
Bug
|
Affects Versions:
|
JRuby 1.7.3 |
Assignee:
|
Thomas E Enebo
|
Components:
|
Ruby 1.9.3 |
Created:
|
18/Apr/13 5:38 PM
|
Description:
|
Division with BigDecimal is not performing correctly. Notice the incorrect result in JRuby and the correct result in MRI with the same code.
Here is a JRuby example:
java -jar bin/jruby-complete-1.7.3.jar -e 'require "bigdecimal"; puts (BigDecimal.new(1.05, 10) / (0.48 + 1.0)).to_s'
0.105E1
Here is the same example on MRI:
m-mpearce [with_javascript_and_jruby] ~/projects/main/backend/pricing/pws$ ruby -e 'require "bigdecimal"; puts (BigDecimal.new(1.05, 10) / (0.48 + 1.0)).to_s'
0.7094594594594595
|
Project:
|
JRuby
|
Priority:
|
Major
|
Reporter:
|
Michael Pearce
|
|
|
|
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