Implement a way to calculate a long expression
See original GitHub issueImplement a way to calculate expressions like 2+4*5+5*2-3 = 29
Today the lib give us the result when tap any operation signal. But some situations need put an expression and ask for the result when tap on =
button.
I think is better show all expression, not clear the textView when tap any operation signal.
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
Basic Calculator - LeetCode
Given a string s representing a valid expression, implement a basic calculator to evaluate it, and return the result of the evaluation.
Read more >Calculating with numbers - Java Programming - Mooc.fi
Learn to perform calculations with the help of variables. Know how to form printable statements including both calculations (expressions) and strings.
Read more >How to make an efficient expression calculator? - java
Shunting yard algorithm is one such way to accomplish complex calculations through efficient parsing. I cant find very much java related ...
Read more >How To Use Mathematical Expressions and Aggregate ...
In this tutorial, you'll practice using mathematical expressions. First, you'll use numeric operations on a calculator, then use those operators ...
Read more >Finding Arithmetic Expression to Construct a Value from Given ...
We can approach this problem in bottom-up fashion: start from input numbers and then combine them into larger and larger expressions. Each ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I just looked at the code and realized it needs major refactoring. I’m going to replace all formatting settings with the use of
NumberFormat
and provide better Kotlin support notably.So don’t mind making a pull request, I’ll release 2.0.0 with many breaking changes (but no functionality lost), the expression view and operation priority in a few weeks.
I probably won’t use the library since I don’t want to introduce a new dependency to the library. Evaluating a simple expression isn’t the most complicated thing to do anyway.