You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "leizhiyuan (JIRA)" <ji...@apache.org> on 2015/11/24 13:08:10 UTC

[jira] [Updated] (LANG-1187) Method createNumber from NumberUtils doesn't work for floating point numbers other than Float

     [ https://issues.apache.org/jira/browse/LANG-1187?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

leizhiyuan updated LANG-1187:
-----------------------------
    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

  was:
 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.


> Method createNumber from NumberUtils doesn't work for floating point numbers other than Float
> ---------------------------------------------------------------------------------------------
>
>                 Key: LANG-1187
>                 URL: https://issues.apache.org/jira/browse/LANG-1187
>             Project: Commons Lang
>          Issue Type: Bug
>          Components: lang.math.*
>    Affects Versions: 3.4
>            Reporter: leizhiyuan
>
> 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



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)