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

Add MathUtils method to check equality given some error bounds

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • None
    • 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. compareTo.patch
          2 kB
          Benjamin McCann
        2. MathUtilsTest.java.patch
          0.8 kB
          Benjamin McCann
        3. MathUtils.java.patch
          0.8 kB
          Benjamin McCann

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: