Comment 6 for bug 1295944

Revision history for this message
Victor Thompson (vthompson) wrote :

The discussion Sam mentions in comment #3 was resolved by changing "9 x 9 -" from being evaluated as "9 x 9 - 9" to "9 x9"--dropping the last operator. I think the same could apply here (meaning "1 +" would result in "1"). This is how the android calculator handles this evaluation. But I also agree that syntax error would be acceptable, but we'd want to change the implementation to also give a syntax error in the case mentioned in comment #3. Path of least resistance might be to simply drop the last operator.