Malformed expression accepted
I accidentally entered 21(8
and the calculator returned 168
. I believe the behaviour in this case should be the same as for 21)8
. In that case, instead of returning a calculated result, the calculator reported Malformed expression
. Calculating a result for a malformed expression and failing to warn the user about it could lead to unintended errors, especially with more complicated expressions, so it would be helpful for this to be addressed.