Prevent the fist button pressed to be an operator. This gives all sorts of issues.
If the first operator is "-" then the calculation should be "0-". Maybe include a Boolean flag to say this operation has occurred and the next key pressed needs to be a number.
Prevent the fist button pressed to be an operator. This gives all sorts of issues.
If the first operator is "-" then the calculation should be "0-". Maybe include a Boolean flag to say this operation has occurred and the next key pressed needs to be a number.