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

Wrong Cell Type Detected #25

Open
parth-ballu opened this issue Jan 2, 2023 · 1 comment
Open

Wrong Cell Type Detected #25

parth-ballu opened this issue Jan 2, 2023 · 1 comment
Assignees

Comments

@parth-ballu
Copy link

parth-ballu commented Jan 2, 2023

A cell having value '45 Pcs' is detecting as numeric type and ignoring 'Pcs' and giving only numeric value i.e. '45'. It happens only when a value is starting from a number.

@alanhay alanhay self-assigned this Dec 12, 2024
@alanhay
Copy link
Owner

alanhay commented Dec 12, 2024

Yes, I can see that NumberFormat.getInstance().parse() which is used to check for numeric values is too lenient.

https://stackoverflow.com/questions/8416354/how-to-parse-numbers-more-strict-than-what-numberformat-does-in-java

So needs a stricter test.

As a workaround for now and if you have control of the HTML then explicitly marking it as a text cell should address the issue:

13.54A

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

No branches or pull requests

2 participants