Mike Beckerle created DAFFODIL-2859:
---------------------------------------

             Summary: dfdl:textNumberFormat "#.##" unparses 0.12 as "0.12" but 
should be ".12"
                 Key: DAFFODIL-2859
                 URL: https://issues.apache.org/jira/browse/DAFFODIL-2859
             Project: Daffodil
          Issue Type: Bug
          Components: ICU
    Affects Versions: 3.5.0
            Reporter: Mike Beckerle


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. 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to