-
Notifications
You must be signed in to change notification settings - Fork 160
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
Some malformed floats do not raise an error, instead evaluate to fail #1105
Comments
So, this seems to be an intentional choice. There is a comment in float parsing
This is, I believe, to support float extensions which want an extra character. Because of this, we can't raise an error until we try converting the float, as a user-installed float package can use this character. So, two questions:
|
How about something like:
Note that we don't error until we interpret the float, we just error instead of returning float at that point. This would technically change behaviour, but I hope no-one is relying on these weird floats becomes fail! |
@laurentbartholdi could you comment on this?
|
@stevelinton : 1. I think it's better not to duplicate the checking: there could be other options in the future, i,j,k for quaternions, etc. |
Consider this:
I would expect the first example to raise an error, not return fail.
My guess would be that this is caused by parsing of float expressions in exponent notation, i.e.
The text was updated successfully, but these errors were encountered: