Mather icon indicating copy to clipboard operation
Mather copied to clipboard

Previous result variable

Open licaon-kter opened this issue 8 years ago • 4 comments

In SpeedCrunch you have 'ans' eg:

  • 1+1 Result 2
  • 'ans'+6 Result 8

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

  • 1+1 Result 2
  • +6 Result 8

licaon-kter avatar Aug 13 '16 05:08 licaon-kter

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.

icasdri avatar Aug 13 '16 16:08 icasdri

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

licaon-kter avatar Aug 13 '16 17:08 licaon-kter

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.

stpr-dev avatar Aug 17 '16 14:08 stpr-dev

@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.

icasdri avatar Sep 01 '16 01:09 icasdri