Uploaded image for project: 'OpenFAST'
  1. OpenFAST
  2. FAST-37

BigDecimal constructor for DecimalValue incorrectly sets the exponent

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Default
    • Resolution: Fixed
    • Affects Version/s: 1.0.0
    • Fix Version/s: 1.0.3
    • Component/s: Types
    • Labels:
      None

      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();

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jacob_northey Jacob Northey
                Reporter:
                glyn_walters Glyn Walters
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: