[FAST-37] BigDecimal constructor for DecimalValue incorrectly sets the exponent Created: 20/Oct/11  Updated: 20/Oct/11  Resolved: 20/Oct/11

Status: Resolved
Project: OpenFAST
Component/s: Types
Affects Version/s: 1.0.0
Fix Version/s: 1.0.3

Type: Bug Priority: Default
Reporter: Glyn Walters Assignee: Jacob Northey
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Duplicate
duplicates FAST-36 BigDecimals are not correctly interpr... Resolved

 Description   

BigDecimal constructor sets instance variables for exponent as:

this.exponent = bigDecimal.scale();

The correct version should be inverted (as it is in the double constructor)

this.exponent = - bigDecimal.scale();


Generated at Sat Nov 23 14:34:58 UTC 2024 using JIRA 7.5.2#75007-sha1:9f5725bb824792b3230a5d8716f0c13e296a3cae.