Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Completely avoid NumberFormatException in Numbers.parseFloat(...) and Numbers.parseDouble(...) #11

Open
safris opened this issue May 24, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@safris
Copy link
Contributor

safris commented May 24, 2020

Java provides implementations for parsing floats and doubles, but these rely on NumberFormatException if a parsing error occurs. A more efficient algorithm would avoid NumberFormatException altogether, and simply return null of a defaultValue.

@safris safris added the enhancement New feature or request label May 24, 2020
@safris safris self-assigned this May 24, 2020
@safris safris changed the title Completely avoid NumberFormatException in Numbers.parseFloat(...) and Numbers.parseDouble(...) Completely avoid NumberFormatException in Numbers.parseFloat(...) and Numbers.parseDouble(...) May 30, 2020
@safris safris added this to the v0.8.1 milestone Sep 16, 2023
@safris safris modified the milestones: v0.8.1, v0.8.2 Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant