Uploaded image for project: 'XMLGraphicsCommons'
  1. XMLGraphicsCommons
  2. XGC-65

[PATCH] DoubleFormatUtil does not work with huge precision

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Resolution: Fixed
    • 2.6
    • None
    • utilities
    • Operating System: All
      Platform: PC

    Description

      The new DoubleFormatUtil class fails to format correctly doubles near Double.MIN_VALUE (0 <= value <= 1e-300) with precision between 300 and 340.

      I fixed the DoubleFormatUtil class and added a test case which shows the issue.

      Attachments

        1. DoubleFormatUtilTest-patch.txt
          1 kB
          Julien Aymé
        2. DoubleFormatUtil-patch.txt
          3 kB
          Julien Aymé
        3. DoubleFormatUtil-patch2.txt
          3 kB
          Julien Aymé
        4. DoubleFormatUtilTest-patch.txt
          2 kB
          Julien Aymé
        5. DoubleFormatUtil-patch.txt
          2 kB
          Julien Aymé

        Activity

          People

            general@xmlgraphics.apache.org XML Graphics Project Mailing List
            julien.ayme@gmail.com Julien Aymé
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: