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

New "equals" method in "MathUtils"

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • None
    • None
    • None

    Description

      Hello.

      The article

      http://www.cygnus-software.com/papers/comparingfloats/comparingfloats.htm

      proposes a robust way of comparing floating-point numbers (look for "AlmostEqual2sComplement").
      It provides an implementation (in C) for type "float", which should be adapted to take 2 "double"s instead.

      Gilles

      Attachments

        Activity

          People

            luc Luc Maisonobe
            erans Gilles Sadowski
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: