fix: Apply negation to current number when new number is pressed
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
This commit is contained in:
@@ -537,7 +537,7 @@ function buttonPress(val) {
|
||||
hasPressedNumber = false;
|
||||
break;
|
||||
case 'N':
|
||||
if (results != null) {
|
||||
if (results != null && !hasPressedNumber) {
|
||||
displayOutput(results *= -1);
|
||||
prevExpression = "-(" + prevExpression + ")";
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user