sevanspowell / CardinalCalculator

Stanford iTunes U "Developing iOS 10 Apps with Swift" course project.
0 stars 0 forks source link

Incorrect operator precedence in description #13

Open sevanspowell opened 7 years ago

sevanspowell commented 7 years ago

When viewing the description property of the CalculatorBrain, the operators need parentheses to indicate correct precedence.

For example, enter "7 + 7 x 2" into the calculator.

We should include extra parentheses in the description functions for each binary operation so that the correct operator precedence can be inferred from the display.