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

Scientific float numbers are not supported correctly #15

Open
christophepersoz opened this issue Nov 22, 2023 · 0 comments
Open

Scientific float numbers are not supported correctly #15

christophepersoz opened this issue Nov 22, 2023 · 0 comments

Comments

@christophepersoz
Copy link

Hi there,

Thanks for this fast and simple use library. I noticed that scientific notation for float values are not well supported by the library.

For example if you got the following JSON value {"val":-2E-1} the parse of the value will return a float value of -2.0 instead of -0.2... which can lead to some problems.

I will try to go a bit deeper on how to get a good extraction of exponent part of a float number. In the meantime if you have a good idea to solve this, I'm in!

Thanks a lot!
Christophe

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

1 participant