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

[PATCH] DoubleFormatUtil does not work with huge precision

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: 2.6
    • Fix Version/s: None
    • Component/s: utilities
    • Labels:
    • Environment:
      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. DoubleFormatUtil-patch.txt
          2 kB
          Julien Aymé
        2. DoubleFormatUtilTest-patch.txt
          2 kB
          Julien Aymé
        3. DoubleFormatUtil-patch2.txt
          3 kB
          Julien Aymé
        4. DoubleFormatUtil-patch.txt
          3 kB
          Julien Aymé
        5. DoubleFormatUtilTest-patch.txt
          1 kB
          Julien Aymé

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: