icasdri / Mather

A powerful expression-based calculator, unit converter, and general computation engine for Android
GNU General Public License v3.0
58 stars 7 forks source link

Previous result variable #4

Open licaon-kter opened 8 years ago

licaon-kter commented 8 years ago

In SpeedCrunch you have 'ans' eg:

Also another way would be (natural) to consider the previous result if the next operation starts with an operator, eg:

icasdri commented 8 years ago

You can tap on the text of any previous result, and it will copy that into the input field. For instance, if you have a calculation in the list like

2+2
                      4

Tapping on the 4 will copy it into the input field.

I will look into implementing a special 'ANS' button, however.

licaon-kter commented 8 years ago

Yes a button, maybe replace that extra ENTER, see #1

stpr-dev commented 8 years ago

Agree with @licaon-kter . I do not think you need a special 'button' for it. When you are computing an expression, simply assign the result to the variable 'ans' by default (assuming of course that it is not a user defined variable or function). So for instance, if the user enters '2+3', make ans=2+3, and display ans. However if the user says 'A=2+3', do not assign it to ans.

icasdri commented 8 years ago

@licaon-kter That extra ENTER (or as it is called in the code, EVAL) is now fully customizable (as is any other key) with a simple long-press.

Previous result variable functionality itself is coming soon.