[
https://issues.apache.org/jira/browse/LANG-1806?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18045916#comment-18045916
]
Harshit Goel commented on LANG-1806:
------------------------------------
I checked LANG-1806 in relation to the fix for LANG-1695.
Since Float.parseFloat("1.f") and Double.parseDouble("1.d") both succeed,
allowing "1.f" to return true in NumberUtils.isParsable would be consistent
with the accepted behavior for trailing decimal points (e.g. "2.").
This case is not covered by the existing change and would require a small
follow-up adjustment.
> 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)