DataElement[("", X12_R2)] does not restrict/validate decimal to two digits beyond the decimal point

Post author
Bryan K

According to the documentation the type X12_R2 should truncate and or validate that a decimal value be limited to a precision beyond the decimal point corresponding to the trailing number specified in the type name (i.e. X12_R"2" limits a decimal to two places beyond the decimal point: 12.123 -> 12.12). However, this does not happen. Any thoughts as to why are greatly appreciated!

Comments

1 comment

  • Comment author
    Admin

    Hello,

    The X12_R, or any other numeric type, is validated for containing only integers, decimal point, and/or sign (+,-). 

    How you interpret the data is up to the consuming application. The validation ensures that the data can be interpreted accordingly.

    1

Please sign in to leave a comment.