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

float parser consumes decimal separator without fractional part #15

Open
aforemny opened this issue Sep 7, 2018 · 1 comment
Open

Comments

@aforemny
Copy link

aforemny commented Sep 7, 2018

Hi,
I have found that the float parser consumes all of the input "42.". I would have expected that it would only consume "42" since there is no fractional part. In my personal opinion, "42." is not a floating point representation, while "42" is.

Here is an Ellie demonstrating this problem: https://ellie-app.com/3gJXCLHPGqJa1

If this is not a bug, I would propose to document that behavior and how to work around it.

@dvberkel
Copy link

dvberkel commented Sep 13, 2018

I am no expert, or involved in the project, just interested and motivated.

My expectation for the float parser would be that it consumes the point (.), even when no digits follow it. So I don't think this is a bug.

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