question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Implement a way to calculate a long expression

See original GitHub issue

Implement 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:closed
  • Created 5 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
maltaisncommented, Feb 20, 2019

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.

1reaction
maltaisncommented, Feb 19, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found