Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-5156

locale format doesn't keep the fractional part

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 10.0.0, 9.6.3
    • 9.6.1
    • None
    • Security Level: Jimmy

      Steps to Reproduce

      <decimalbox format="locale:en-IN" cols="20" value="123456789.00"/>
      <doublebox format="locale:en-IN" cols="20" value="123456789.00"/>
      

      Current Result

      the fractional part is removed, it shows 123456789

      Expected Result

      a way to specify how many fractional digits to show

      Debug Information

      • the requirement is like format="#,##,##0.00", 2 fraction digits
      • maximumFractionDigits and minimumFractionDigits can achieve
      • Although this is a bug, it's more like a missing specification of the feature locale-dependent format. We should list the spec before implementing it.

      Workaround

      c:fractionDigits="2" in 15083.zul + decimal_fraction.js

            gordonhsu gordonhsu
            hawk hawk
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: