An expression written as 3-# -(-3-#) (that's 3^2 - (-3^2)-a in case the superscript two doesn't reproduce) would be parsed as 3-# - (-(3-#)) = 9 - (-9) = 18, and not as 3-# - (-3)-# = 9 - 9 = 0, wouldn't it?
Stupid to write the expression in a way that even *might* be ambiguous
to people who didn't know the BODMAS rules, and I'd always use brackets, even if they were superfluous, to make my meaning obvious, but given the expression as it was written, I've evaluated it correctly, haven't I?
An expression written as 3-# -(-3-#) (that's 3^2 - (-3^2)-a in case the superscript two doesn't reproduce) would be parsed as 3-# - (-(3-#)) = 9 - (-9) = 18, and not as 3-# - (-3)-# = 9 - 9 = 0, wouldn't it?
An expression written as 3# -(-3#) (that's 3^2 - (-3^2) in case the >superscript two doesn't reproduce) would be parsed as 3# - (-(3#)) = 9 - >(-9) = 18, and not as 3# - (-3)# = 9 - 9 = 0, wouldn't it?
Stupid to write the expression in a way that even *might* be ambiguous to >people who didn't know the BODMAS rules, and I'd always use brackets, even >if they were superfluous, to make my meaning obvious, but given the >expression as it was written, I've evaluated it correctly, haven't I?
An expression written as 3-# -(-3-#) (that's 3^2 - (-3^2) in case the superscript two doesn't reproduce) would be parsed as 3-# - (-(3-#)) = 9 - (-9) = 18, and not as 3-# - (-3)-# = 9 - 9 = 0, wouldn't it?
Stupid to write the expression in a way that even *might* be ambiguous to people who didn't know the BODMAS rules, and I'd always use brackets, even
if they were superfluous, to make my meaning obvious, but given the expression as it was written, I've evaluated it correctly, haven't I?
An expression written as 3-# -(-3-#) (that's 3^2 - (-3^2)-a in case the superscript two doesn't reproduce) would be parsed as 3-# - (-(3-#)) = 9 - (-9) = 18, and not as 3-# - (-3)-# = 9 - 9 = 0, wouldn't it?
Stupid to write the expression in a way that even *might* be ambiguous
to people who didn't know the BODMAS rules, and I'd always use brackets, even if they were superfluous, to make my meaning obvious, but given the expression as it was written, I've evaluated it correctly, haven't I?
A minus sign in an expression is followed and preceded by a (non-
breaking) space, e.g. 8 - 5
A negative number is indicated by preceding it with a minus sign without
a space, e.g. -5
There would be no confusion if you had followed the correct notation:
3-# - -3-#
although adding brackets may help to make the intention absolutely clear:
3-# - (-3-#)
| Sysop: | Amessyroom |
|---|---|
| Location: | Fayetteville, NC |
| Users: | 59 |
| Nodes: | 6 (0 / 6) |
| Uptime: | 19:40:40 |
| Calls: | 810 |
| Calls today: | 1 |
| Files: | 1,287 |
| D/L today: |
10 files (21,017K bytes) |
| Messages: | 194,291 |