[teiid-issues] [JBoss JIRA] Updated: (TEIID-159) Modify our handling of BigDecimal division to use MathContext.DECIMAL128 as our rounding mode to improve scale and precision of results

Ramesh Reddy (JIRA) jira-events at lists.jboss.org
Wed Feb 11 12:12:46 EST 2009


     [ https://jira.jboss.org/jira/browse/TEIID-159?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ramesh Reddy updated TEIID-159:
-------------------------------

          Component/s: Server
        Fix Version/s: 6.1.0
    Affects Version/s: 6.x


> Modify our handling of BigDecimal division to use MathContext.DECIMAL128 as our rounding mode to improve scale and precision of results
> ---------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: TEIID-159
>                 URL: https://jira.jboss.org/jira/browse/TEIID-159
>             Project: Teiid
>          Issue Type: Feature Request
>          Components: Server
>    Affects Versions: 6.x
>            Reporter: Jerry Helbling
>             Fix For: 6.1.0
>
>
> Using MathContext.DECIMAL128 should give a more usable scale and precision to the results.
> 		
> Current behavior
> 	     254403453878 / 21870000000 returns 12
>     and
> 	     254403453878.0001 / 21870000000 returns 11.6325
> 		
> Improved behavior:
> 	    254403453878 / 21870000000 returns 11.632531
>     and
> 	    254403453878.0001 / 21870000000 returns 11.632531
> 		
> We should also investigate what the impact of this change will be on users who may be relying on our current behavior.
> Reference: This enhancement was suggested by Issue Tracker Issue 175485, contributed by Greg Haber

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the teiid-issues mailing list