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

Calculation Preview #5

Open
fillwithjoy1 opened this issue Jul 31, 2023 · 4 comments
Open

Calculation Preview #5

fillwithjoy1 opened this issue Jul 31, 2023 · 4 comments
Labels
bug Something isn't working enhancement New feature or request will be added in future Some feature which cannot be implemented for some reason

Comments

@fillwithjoy1
Copy link
Contributor

Can you implement this feature? Essentially when you make a calculation, a preview of the answer appears.
A good example of this is in Google calculator. Here's a screenshot for your reference
Screenshot_20230801-064748

Notice how the answer is briefly displayed in the bottom, as a preview.

@boredcodebyk
Copy link
Owner

That's what I'm also trying to achieve. I'm currently using math_expressions and here the whole expression needs to be written before evaluation happens. I trying to find a better way to implement this or perhaps I'll work from scratch when all roads are blocked

@boredcodebyk
Copy link
Owner

i'll be writing from scratch

@boredcodebyk boredcodebyk added bug Something isn't working enhancement New feature or request will be added in future Some feature which cannot be implemented for some reason labels Aug 3, 2023
@mks-h
Copy link

mks-h commented Nov 1, 2023

I hope by from scratch you don't mean to rewrite the expression parser and calculator? That would be pretty bugs prone, IMHO. Why not just feed the library the whole expression on every button press, and just not show any preview if it returns error (i.e. when expression is malformed)? Or show "Malformed expression" text.

@boredcodebyk
Copy link
Owner

by from scratch, I mean the layout, as for now. but if for some reason I have to write the all math functions, I'll do that too. i just need some more time, as I'm busy with irl stuffs a lot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request will be added in future Some feature which cannot be implemented for some reason
Projects
Development

No branches or pull requests

3 participants