huayichen / simple

Automatically exported from code.google.com/p/simple
0 stars 0 forks source link

why does addition and subtraction come before multiplication? #21

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hello all! i have not tried this program but it looks fantastic!
an issue i had reading the documentation:
the specification says that + and - have priority over *and /
is there a reason for this? in mathematics multiplication and division come 
before addition and subtraction unless a parenthesis says otherwise.
Is the spec wrong or is this how it is implemented? or is there a reason for 
this?

Original issue reported on code.google.com by RiverHea...@gmail.com on 9 Oct 2010 at 1:19