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

Changed tokenizer to accept digits that start with the deciaml separator #10

Closed
wants to merge 1 commit into from

Conversation

jhudson
Copy link

@jhudson jhudson commented Mar 5, 2014

Hello,

I use exp4j for very simple but sometimes long equations where the values can be expressed as .002 or .1, etc. Currently the Tokenizer doesn't recognise these as numbers and throws an UnparsableExpressionException exception.

This push request adds this ability and tests cases for it, I have also added a test suite to test all test cases in one go.

@fasseg
Copy link
Owner

fasseg commented Mar 6, 2014

Hey jhudson!

Thanks for the pull request. Unfortunately I'm planning to release a new Version of exp4j using a new Tokenizer which resides in the branch exp4j-fast. This tokenizer does correctly tokenize decimals without a leading zero.
So I kinda retired the main branch and hope to release a new version over the next couple of days.

@fasseg fasseg closed this Mar 6, 2014
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

Successfully merging this pull request may close these issues.

2 participants