Uploaded image for project: 'Commons Math'
  1. Commons Math
  2. MATH-778

Dfp Dfp.multiply(int x) does not comply with the general contract FieldElement.multiply(int n)

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0
    • Fix Version/s: 3.1
    • Labels:
      None

      Description

      In class org.apache.commons.math3.Dfp, the method multiply(int n) is limited to 0 <= n <= 9999. This is not consistent with the general contract of FieldElement.multiply(int n), where there should be no limitation on the values of n.

        Attachments

        1. MATH-778.patch
          2 kB
          Thomas Neidhart

          Activity

            People

            • Assignee:
              celestin Sébastien Brisard
              Reporter:
              celestin Sébastien Brisard
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: