カニ風 [she/they]@lemmy.blahaj.zone to Science Memes@mander.xyzEnglish · 5 months agoa very emphatic answerlemmy.blahaj.zoneimagemessage-square58fedilinkarrow-up1529arrow-down130
arrow-up1499arrow-down1imagea very emphatic answerlemmy.blahaj.zoneカニ風 [she/they]@lemmy.blahaj.zone to Science Memes@mander.xyzEnglish · 5 months agomessage-square58fedilink
minus-square💡𝚂𝗆𝖺𝗋𝗍𝗆𝖺𝗇 𝙰𝗉𝗉𝗌📱@programming.devlinkfedilinkEnglisharrow-up1arrow-down1·5 months ago You are adding more rules I’m stating the existing rules. If all that matters is higher orders first I don’t even know what you mean by that. We have the acronyms as a reminder of the rules, as I already said. I know operators apply to the numbers to their right. If you know that then how did you get 2-2+2=-2? With 2/22, you don’t know if it is 22/2, or 2/(2*2) Yes you do - left associativity. i.e. there’s no brackets. When you are dividing by numbers, you put them all in the denominator Only the first term following a division goes in the denominator - left associativity. BY CONVENTION, as I said. You don’t have to repeat what I said a second time. I didn’t. You said it was a convention, and I corrected you that it’s a rule. It’s not like you could have tried in your head different orders to combine 3 numbers. addition first 2-2+2=4-2=2 subtraction first 2-2+2=-2+2+2=-2+4=2 left to right 2-2+2=0+2=2 3 different orders, all the same answer
I’m stating the existing rules.
I don’t even know what you mean by that. We have the acronyms as a reminder of the rules, as I already said.
If you know that then how did you get 2-2+2=-2?
Yes you do - left associativity. i.e. there’s no brackets.
Only the first term following a division goes in the denominator - left associativity.
I didn’t. You said it was a convention, and I corrected you that it’s a rule.
addition first
2-2+2=4-2=2
subtraction first
2-2+2=-2+2+2=-2+4=2
left to right
2-2+2=0+2=2
3 different orders, all the same answer