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

Method createNumber from NumberUtils doesn't work for floating point numbers other than Float

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.6
    • Fix Version/s: 3.2
    • Component/s: lang.math.*
    • Labels:
      None

      Description

      Method createNumber from NumberUtils is trying to parse a string with a floating point number always first as a Float, that will cause that if we send a string with a number that will need a Double or even a BigDecimal the number will be truncate to accommodate into the Float without an exception to be thrown, so in fact we will no be returning ever neither a Double nor a BigDecimal.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              rego Carlos Rego

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment