Skip to content

pattern for floats #6

Description

@MarcoCostantini

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions