[
https://issues.apache.org/jira/browse/MATH-307?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Phil Steitz updated MATH-307:
-----------------------------
Description:
BigReal implements the methode divide of Fieldelement. The problem is that
there is no scale defined for the BigDecimal so the class will throw an error
when the outcome is not a representable decimal result.
(Exception: no exact representable decimal result)
The workaround for me was to copy the BigReal and set the scale and
roundingMode the same as version 1.2.
Maybe is it possible to set the scale in FieldMatrix and implements it also a
divide(BigReal b, int scale, int roundMode) ??
was:
BigReal implements the methode divide of Fieldelement. The problem is that
there is no scale defined for the BigDecimal so the class will throw an error
when the outcome is not a representable decimal result.
(Exception: no exact representable decimal result)
The workaround for me was to copy the BigReal and set the scale and
roundingMode the same as version 1.2.
Maybe is it possible to set the scale in FieldMatrix and implements it also a
divide(BigReal b, int scale, int roundMode) ??
Fix Version/s: (was: 1.2)
2.1
> BigReal/Fieldelement divide without setting a proper scale -> exception: no
> exact representable decimal result
> --------------------------------------------------------------------------------------------------------------
>
> Key: MATH-307
> URL: https://issues.apache.org/jira/browse/MATH-307
> Project: Commons Math
> Issue Type: Bug
> Affects Versions: 2.0
> Environment: independent
> Reporter: Joan Schipper
> Fix For: 2.1
>
> Original Estimate: 4h
> Remaining Estimate: 4h
>
> BigReal implements the methode divide of Fieldelement. The problem is that
> there is no scale defined for the BigDecimal so the class will throw an error
> when the outcome is not a representable decimal result.
> (Exception: no exact representable decimal result)
> The workaround for me was to copy the BigReal and set the scale and
> roundingMode the same as version 1.2.
> Maybe is it possible to set the scale in FieldMatrix and implements it also a
> divide(BigReal b, int scale, int roundMode) ??
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.