[
https://issues.apache.org/jira/browse/LANG-1806?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18046973#comment-18046973
]
Jagdish Singh Bisht commented on LANG-1806:
-------------------------------------------
Hi, I’d like to work on this issue.
Since {{Float.parseFloat("1.f")}} and {{Double.parseDouble("1.d")}} succeed,
updating {{NumberUtils.isParsable}} to align with this behavior seems
reasonable and consistent with LANG-1695.
I can prepare a fix along with unit tests.
> NumberUtils.isParsable("1.f") should return true
> ------------------------------------------------
>
> Key: LANG-1806
> URL: https://issues.apache.org/jira/browse/LANG-1806
> Project: Commons Lang
> Issue Type: Bug
> Reporter: Gary D. Gregory
> Priority: Major
>
> {{NumberUtils.isParsable("1.f")}} should return true because
> {{Float.parseFloat("1.f")}} return {{1.0}}
> Same for {{Double}} and {{d}} since these work:
> * Double.parseDouble("1.f")
> * Double.parseDouble("1.d")
--
This message was sent by Atlassian Jira
(v8.20.10#820010)