Unfortunately, the acronym PEMDAS does not accurately reflect the order of operations as it suggests to those who are unfamiliar with how math actually works that - Multiplication has precedence over Division and that Addition has precedence over Subtraction; neither of which is true. There are really only 4 types of operations, and they are:
1 - Parentheses or brackets - P - used to override the order of precedence of operators 2 - 4. Beginning with the most deeply nested grouping and proceeding left to right inside each nested level. ( 2nd ( 1st ) 3rd )
2 - Exponentiation - E - operations from left to right take precedence over
3 - Multiplication (and Division) - M - operations from left to right take precedence over
4 - Addition (and Subtraction) - A - operations from left to right.
Acronyms are only there to remind of you of something you really should thoroughly understand already. That said, a better acronym to remember would be PEMA.
I highly recommend that anyone who doesn't understand why M and D, for example, have the same precedence; to review the reciprocal nature of these operations. Once you thoroughly understand M/D then move on to exponents, negative exponents, and fractional exponents. (And btw, $x - y = x + (-y)$. (See, S is really just A with negative numbers.)
As always, if I made a mistake, please let me know. That's how peer review works.
÷have precedence over⋅while calculating the taxes I have to pay in France as a freelancer. The formula is in a legal text (https://www.legifrance.gouv.fr/eli/decret/2017/3/8/ECFS1700138D/jo/texte/fr) and isTaux = T - 3,50 % × (1 - R/0,7 PSS). I could not make it work until I modified it toTaux = T - 3,50 % × (1 - R/ (0,7 PSS)). – Daishi Aug 22 '18 at 18:44