Details
-
Type: Bug
-
Status: Resolved
-
Priority: Default
-
Resolution: Fixed
-
Affects Version/s: 0.9.6
-
Fix Version/s: 0.9.7
-
Component/s: Message Object Model
-
Labels:None
Description
While the mantissa and exponent are maintained to full precision in transfer encoding, this precision is lost on the receiver when a DecimalValue is converted to a BigDecimal via a double:
public BigDecimal toBigDecimal()
{ return new BigDecimal(value); }I believe this needs to be changed to:
public BigDecimal toBigDecimal()
{ return BigDecimal.valueOf(mantissa, -exponent); }