You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Guillaume Nodet (Jira)" <ji...@apache.org> on 2023/04/06 08:24:00 UTC

[jira] [Commented] (LANG-1695) NumberUtils.isParseable does not recognise values such as "2."

    [ https://issues.apache.org/jira/browse/LANG-1695?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17709278#comment-17709278 ] 

Guillaume Nodet commented on LANG-1695:
---------------------------------------

Note that the code mentions small differences between {{isParseable}} and {{isCreateable}}.

> NumberUtils.isParseable does not recognise values such as "2."
> --------------------------------------------------------------
>
>                 Key: LANG-1695
>                 URL: https://issues.apache.org/jira/browse/LANG-1695
>             Project: Commons Lang
>          Issue Type: Bug
>    Affects Versions: 3.12.0
>            Reporter: Guillaume Nodet
>            Priority: Minor
>
> This is a bit of an edge case, but {{Float.parseFloat("2.")}} returns the value {{2.0f}} as expected, while {{NumberUtils.isParseable("2.")}} returns false.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)