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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Duplicate
    • 3.4
    • None
    • lang.math.*
    • None

    Description

      demo:

      Number n = org.apache.commons.lang3.math.NumberUtils.createNumber("6264583.33");
      System.out.println("lang3_createNumber_6264583.33---->" + n);

      while n will be 6264583.5. not 6264583.33

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              leizhiyuan Zhiyuan Lei
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: