Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-1484

NumberUtils.isParsable returns false for strings ending with .

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 3.8.1
    • None
    • lang.math.*
    • None
    • Tested on Linux with OpenJDK 10.0.2 and Windows with Oracle Java 8 Update 201.

    Description

      From the Javadocs:

      Parsable numbers include those Strings understood by ... Double.parseDouble(String).

      Double.parseDouble("100.") returns a valid double (it does not throw a NumberFormatException); however, NumberUtils.isParsable("100.") returns false.

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              seniorquico Kyle Dodson
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

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