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

locale format doesn't keep the fractional part

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 9.6.1
    • Fix Version/s: 10.0.0, 9.6.3
    • Component/s: None
    • Security Level: Jimmy
    • Labels:

      Description

      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

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: