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

NumberUtils.isCreatable failed to check weather a string is number

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Invalid
    • Affects Version/s: 3.9
    • Fix Version/s: None
    • Component/s: lang.math.*
    • Labels:
      None
    • Docs Text:
      Hide
      You can find an example here:

             String value ="000298";
             String value2 ="0003000";
             assertThat( NumberUtils.isCreatable(value)).isTrue(); =>false
             assertThat( NumberUtils.isCreatable(value2)).isTrue(); => true
      Show
      You can find an example here:        String value ="000298";        String value2 ="0003000";        assertThat( NumberUtils.isCreatable(value)).isTrue(); =>false        assertThat( NumberUtils.isCreatable(value2)).isTrue(); => true

      Description

      When checks the string is a valid number by using NumberUtils.isCreatable it is returning false.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Segikwiye Jean-Pierre
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: