mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 21:17:45 +00:00
Calculator: Support chaining and repeating operations
The calculator now supports chaining (hitting "1+2+3=" shows "6" instead of "5") and repeating ("2+2===" shows "8") operations. :^)
This commit is contained in:
parent
ef9fd6c286
commit
21cc8f65f5
5 changed files with 126 additions and 72 deletions
|
@ -35,6 +35,8 @@ public:
|
|||
|
||||
DeprecatedString to_deprecated_string() const;
|
||||
|
||||
bool in_typing_state() const;
|
||||
|
||||
private:
|
||||
// Internal representation of the current decimal value.
|
||||
// Those variables are only used when the user is entering a value.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue