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

Apply arithmetic operators on numerical values #3184

Closed
wants to merge 1 commit into from
Closed

Apply arithmetic operators on numerical values #3184

wants to merge 1 commit into from

Conversation

ozlb
Copy link

@ozlb ozlb commented May 2, 2020

You can apply arithmetic operators +,-,*,/ on numerical values.
e.g. [ 100 ], input '++2', result becomes [ 102 ]
e.g. [ 100 ], input '--2', result becomes [ 98 ]
e.g. [ 100 ], input '*2', result becomes [ 200 ]
e.g. [ 100 ], input '/2', result becomes [ 50 ]

You can apply arithmetic operators +,-,*,/ on numerical values.
e.g. [ 100 ], input '++2', result becomes [ 102 ]
e.g. [ 100 ], input '--2', result becomes [  98 ]
e.g. [ 100 ], input '*2', result becomes [ 200 ]
e.g. [ 100 ], input '/2', result becomes [  50 ]
@ocornut
Copy link
Owner

ocornut commented May 5, 2020

Hello,

Thanks for submitting the PR.

As per #1691 I think the right direction would be to remove this stock feature and instead allow user to plug their own expression evaluator if they need it. As such I don't think we'd be able to merge this PR :/

Omar

@ozlb
Copy link
Author

ozlb commented May 6, 2020

Ok, thanks.
Regards

@ozlb ozlb closed this May 6, 2020
ocornut added a commit that referenced this pull request Jan 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants