Parsing they are equivalent I think.

Unparsing they're very different.


The 0 pattern char always contributes a digit. It will create leading and 
trailing 0.


The # pattern char contributes a digit unless that digit would be a leading (or 
trailing) zero.


________________________________
From: Costello, Roger L. <[email protected]>
Sent: Monday, June 24, 2019 1:56:21 PM
To: [email protected]
Subject: What is the difference between dfdl:textNumberPattern="0,000" and 
dfdl:textNumberPattern="#,###"


Hello DFDL community,



It appears from Table 32 in the DFDL specification that # and 0 denote the same 
thing; namely they both denote a digit (0 – 9). Yes?



If so, is there any difference between these:



dfdl:textNumberPattern="0,000"



dfdl:textNumberPattern="#,###"



/Roger


Reply via email to