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

DoubleValidator and FloatValidator do not allow exponents to be entered

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.0.2
    • 2.0.3
    • wtk
    • 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. 892.patch
          3 kB
          Roger Lee Whitcomb
        2. num.patch
          9 kB
          Roger Lee Whitcomb

        Activity

          People

            rwhitcomb Roger Lee Whitcomb
            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