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 Bug
    • Status: Closed
    • Priority: Major 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.

      1. MATH-778.patch
        2 kB
        Thomas Neidhart

        Activity

        No work has yet been logged on this issue.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development