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

NumberUtils.isCreatable failed to check weather a string is number

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • 3.9
    • None
    • lang.math.*
    • None
    • 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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment