Skip to content

LANG-1695: Allow trailing decimal point in NumberUtils.isParsable#1531

Merged
garydgregory merged 2 commits intoapache:masterfrom
harshitt-goel:LANG-1695
Dec 17, 2025
Merged

LANG-1695: Allow trailing decimal point in NumberUtils.isParsable#1531
garydgregory merged 2 commits intoapache:masterfrom
harshitt-goel:LANG-1695

Conversation

@harshitt-goel
Copy link
Copy Markdown
Contributor

Fixes LANG-1695.

NumberUtils.isParsable rejected numeric strings ending with a decimal
point (e.g. "2.", "64."), although such values are valid according to
Float.parseFloat and Double.parseDouble.

This change removes the premature trailing-dot rejection and updates
tests to reflect the correct behavior.

@garydgregory garydgregory merged commit 9828dc7 into apache:master Dec 17, 2025
19 of 20 checks passed
@garydgregory
Copy link
Copy Markdown
Member

@harshitt-goel
Thank you for the PR. Please see also LANG-1806.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants