wrong division result in template

1568278640789.webp
The usual mathematical rules are where multiplication and then division takes place. If the division were the first action or was performed in parentheses, then it would have counted differently. So where is the problem?
 
View attachment 210220
The usual mathematical rules are where multiplication and then division takes place. If the division were the first action or was performed in parentheses, then it would have counted differently. So where is the problem?

hmm....
It will do from left to the right.
Who are your maths teacher?

That from php:

1568278821355.png
1568279016842.png

That from google
1568278977169.png

that from my phone:


1568279143457.png
 
Last edited:
You are bad with math and google and the calculator on Samsung substitutes brackets.
View attachment 210226
If you’re going to be rude to someone, at least be correct.

You seem to have gone from arguing 0.367 is correct to proving that 36.67 is correct.

It is indeed 36.67 that is correct when there are no parentheses.

Our template parser/compiler literally adds the parentheses in the wrong place automatically. It compiles to 11 / (30 * 100) which is wrong.

We are looking into this but for various reasons we may need to defer it to much later or accept it as a quirk - there are similar quirks with compiling conditions without parentheses.

You can add the parentheses yourself though and that will workaround the issue for now.
 
Back
Top Bottom