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

Math Eval - allow sign in shorthand sum expression #437

Open
ProgerXP opened this issue Sep 21, 2022 · 0 comments
Open

Math Eval - allow sign in shorthand sum expression #437

ProgerXP opened this issue Sep 21, 2022 · 0 comments

Comments

@ProgerXP
Copy link
Owner

ProgerXP commented Sep 21, 2022

Special case: expression with only digits (including hex), radix prefix/suffixes, periods and any ignored symbols (above) is treated as a series of whitespace-separated numbers, which are summed up.

Extend this rule by allowing sign before every valid number:

12,3 -45.6 $78 -10h = 123-45.6+78-16 = 139.40

Update: but 123 -456 could be either a shorthand expression (123 + -456) or a full expression with lacking whitespace (123 - 456). More thought should be put into this feature.

@cshnik cshnik self-assigned this Nov 15, 2022
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

2 participants