Toes♀@ani.social to 196@lemmy.blahaj.zone · 7 months agoGlitch in the matrixani.socialimagemessage-square347fedilinkarrow-up13
arrow-up13imageGlitch in the matrixani.socialToes♀@ani.social to 196@lemmy.blahaj.zone · 7 months agomessage-square347fedilink
minus-square💡𝚂𝗆𝖺𝗋𝗍𝗆𝖺𝗇 𝙰𝗉𝗉𝗌📱@programming.devlinkfedilinkEnglisharrow-up1·3 months ago what’s the correct one? Yes, one is correct :-)
minus-squareShortFuse@lemmy.worldlinkfedilinkarrow-up0·edit-27 months 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·3 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.