Uploaded image for project: 'Pivot'
  1. Pivot
  2. PIVOT-892

DoubleValidator and FloatValidator do not allow exponents to be entered

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.2
    • Fix Version/s: 2.0.3
    • Component/s: wtk
    • Labels:
    • Environment:
      All

      Description

      The DoubleValidator and FloatValidator classes rely on a default NumberFormat instance to do parsing, however, a DecimalFormat is necessary in order to recognize floating values entered with exponents.

      As a result, using one of these validators currently will fail to validate a valid floating-point number such as "3.0e20".

        Attachments

        1. num.patch
          9 kB
          Roger Lee Whitcomb
        2. 892.patch
          3 kB
          Roger Lee Whitcomb

          Activity

            People

            • Assignee:
              rwhitcomb Roger Lee Whitcomb
              Reporter:
              rwhitcomb Roger Lee Whitcomb
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified