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

Add MathUtils method to check equality given some error bounds

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None

      Description

      It would be nice to have a utility method that tests for equality given some range of allowed error to account for floating point error.

        Attachments

        1. MathUtils.java.patch
          0.8 kB
          Benjamin McCann
        2. MathUtilsTest.java.patch
          0.8 kB
          Benjamin McCann
        3. compareTo.patch
          2 kB
          Benjamin McCann

          Issue Links

            Activity

              People

              • Assignee:
                luc Luc Maisonobe
                Reporter:
                bmccann Benjamin McCann
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: