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

pattern for floats #6

Open
MarcoCostantini opened this issue May 21, 2020 · 0 comments
Open

pattern for floats #6

MarcoCostantini opened this issue May 21, 2020 · 0 comments

Comments

@MarcoCostantini
Copy link

At the beginning of the file
https://github.com/lurchmath/openmath-js/blob/master/openmath.js
there is the 'float' pattern : /[+-]?(?:[0-9]+\.[0-9]*|[0-9]*\.[0-9]+)/
but it doesn't support big floats with exponent such as 3.44e203
Take instead the pattern from the function vsOMF of https://www.openmath.org/validation/omvalidate.js , the script used by https://www.openmath.org/validation/omvalidate.html

Also have a look at that file, which is also javascript for openmath, in case that there is something useful for openmath-js

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