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

field type: floating-point number should accept computerees for large and small numbers... #47

Open
gutow opened this issue Jun 6, 2016 · 0 comments

Comments

@gutow
Copy link

gutow commented Jun 6, 2016

Python and most calculators accept numbers in the format X.XXXeYY for representing scientific notation in a compact manner. I believe the input checking on floating-point numbers should accept that format as well.

The problem appears to be with the javascript checking of the input field. Try entering something like "1.1e10" into any dexterity float field in the edit view. You will get the red box around it with this error: "The entered value is not a valid decimal literal."

The validation appears to only accept digits and 1 decimal point. This is Plone 5.04.
No errors are logged as the js checking does not allow submission. I do not think that standard X.XeYY notation will cause a problem if submitted. Display of computed fields that yield large numbers do default to scientific notation.

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