Inconsistent results for ambiguous expressions depending on explicit multiplication (*) or implicit

Issue #886 duplicate
Nick Peters created an issue

Equations of the form a/b*c can give different result depending on whether division or multiplication is given the higher priority:

For example 6/2(1+2) can be read as 6/(23) or (6/2)*3.

There is no right or wrong way for a calculator to interpret this (although my preference is evaluation from left to right)

SpeedCrunch v0.12 however, parses the expression differently depending on whether the multiplication has an explicit asterisk or not:

6/2*(1+2) = 9

6/2(1+2) = 1

Comments (2)

  1. Log in to comment