3 ms·
PEMDAS is pretty easy to remember too. Though for programming the E isn't usually relevant unless it's python.
by jimmaswell 7y ago
PEMDAS is pretty easy to remember too. Though for programming the E isn't usually relevant unless it's python.
- csunbird 7y agoIs it PEMDAS or PEDMAS ?
- sdenton4 7y agoLuckily, the M and D commute. (...Over the reals. Your mileage may vary in less exact types. The Surgeon General recommends avoiding division in production code. Regulations vary by state.)
- Avshalom 7y agoyou can still run into problems with chains like 2×3÷4×5 (2×3)÷(4×5) = 6÷20 = 0.3 2×(3÷4)×5 = 10×0.75 = 7.5 ((2×3)÷4)×5 = 7.5
- bena 7y agoEither/or. That's kind of one problem with it, it's less PEMDAS and more P, E, MD, AS. Multiplication and division don't have precedence over each other and neither does addition and subtraction. Both of those go from left to right.
- frosted-flakes 7y agoIt's BEDMAS. B for brackets (which is what parentheses are called in Canada; see also square brackets, curly brackets, and angle brackets).