Uploaded image for project: 'Daffodil'
  1. Daffodil
  2. DAFFODIL-2859

dfdl:textNumberFormat "#.##" unparses 0.12 as "0.12" but should be ".12"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • 3.5.0
    • 3.6.0
    • ICU
    • None

    Description

      Due to ICU bug

       
      https://unicode-org.atlassian.net/browse/ICU-22558
       
      dfdl:textNumberPattern strings with # only, and no digits before the decimal point still end up creating a 0 digit before the decimal point.
       
      For example "#.##" should format 0.12 as ".12" without a leading zero. 
       
      This could be worked around in daffodil code by detecting when to call the `DecimalFormat.setMinimumIntegerDigits(0)` on the number format object. 
      This requires a minor analysis of the ICU number pattern. 

      Attachments

        Activity

          People

            mbeckerle Mike Beckerle
            mbeckerle Mike Beckerle
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: