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

5e is not a valid float but parsed #11

Open
egao1980 opened this issue Apr 27, 2020 · 4 comments
Open

5e is not a valid float but parsed #11

egao1980 opened this issue Apr 27, 2020 · 4 comments

Comments

@egao1980
Copy link

CL-USER> (parse-float:parse-float "5e")
5.0
2 (2 bits, #x2, #o2, #b10)
@ikrabbe
Copy link

ikrabbe commented Jan 13, 2021

Is it a bug or is it a feature?

@egao1980
Copy link
Author

It's a bug as exponent should be present if 'e' is specified.

@ikrabbe
Copy link

ikrabbe commented Apr 1, 2021

I find it hard to think of an input parser that has problems because a easily guessable default value is missing. In this case the default is 0 of course.

@egao1980
Copy link
Author

egao1980 commented Apr 5, 2021

My point is that 0 is not the default here. Exponent is mandatory after 'e'. It is so in CL and many other languages.

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