Toes♀@ani.social to 196@lemmy.blahaj.zone · 1 year agoGlitch in the matrixani.socialexternal-linkmessage-square386fedilinkarrow-up17arrow-down10
arrow-up17arrow-down1external-linkGlitch in the matrixani.socialToes♀@ani.social to 196@lemmy.blahaj.zone · 1 year agomessage-square386fedilink
minus-square💡𝚂𝗆𝖺𝗋𝗍𝗆𝖺𝗇 𝙰𝗉𝗉𝗌📱@programming.devlinkfedilinkEnglisharrow-up1·8 months ago what’s the correct one? Yes, one is correct :-)
minus-squareShortFuse@lemmy.worldlinkfedilinkarrow-up0·edit-21 year agoIf you believe multiplication goes before division then 1. 8 / (2 * 4) If you believe multiplication and division are of equal importance 16. 8 / 2 * 4 SQL, Google, and I believe C++ and HLSL would say the latter: (16)
minus-square💡𝚂𝗆𝖺𝗋𝗍𝗆𝖺𝗇 𝙰𝗉𝗉𝗌📱@programming.devlinkfedilinkEnglisharrow-up1·8 months ago If you believe multiplication goes before division then 1. 8 / (2 * 4) That’s not “multiplication” though - that’s The Distributive Law. Multiplication refers literally to multiplication signs.
So umm what’s the correct one?
Yes, one is correct :-)
If you believe multiplication goes before division then
1
.8 / (2 * 4)
If you believe multiplication and division are of equal importance
16
.8 / 2 * 4
SQL, Google, and I believe C++ and HLSL would say the latter: (
16
)That’s not “multiplication” though - that’s The Distributive Law. Multiplication refers literally to multiplication signs.