Operators & the Calculation Engine
3 min read
Operators & the Calculation Engine
A calculator needs to remember more than the number currently on screen. When a user presses +, ×, or another operator, the application must remember which operation was selected and which number came before it.
You will build that flow in small steps:
number → operator → second number → equals → result