You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Saksham Gupta (Jira)" <ji...@apache.org> on 2019/09/09 11:17:00 UTC
[jira] [Commented] (LANG-1484) NumberUtils.isParsable returns false
for strings ending with .
[ https://issues.apache.org/jira/browse/LANG-1484?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16925597#comment-16925597 ]
Saksham Gupta commented on LANG-1484:
-------------------------------------
I am working on this issue.
> NumberUtils.isParsable returns false for strings ending with .
> --------------------------------------------------------------
>
> Key: LANG-1484
> URL: https://issues.apache.org/jira/browse/LANG-1484
> Project: Commons Lang
> Issue Type: Bug
> Components: lang.math.*
> Affects Versions: 3.8.1
> Environment: Tested on Linux with OpenJDK 10.0.2 and Windows with Oracle Java 8 Update 201.
> Reporter: Kyle Dodson
> Priority: Minor
>
> From the Javadocs:
> {quote}Parsable numbers include those Strings understood by ... Double.parseDouble(String).
> {quote}
> {{Double.parseDouble("100.")}} returns a valid double (it does not throw a {{NumberFormatException}}); however, {{NumberUtils.isParsable("100.")}} returns {{false}}.
>
--
This message was sent by Atlassian Jira
(v8.3.2#803003)