LadyButterfly she/her@piefed.blahaj.zone to Science Memes@mander.xyzEnglish · 11 hours agoI dunnopiefed.cdn.blahaj.zoneimagemessage-square142fedilinkarrow-up1406arrow-down138
arrow-up1368arrow-down1imageI dunnopiefed.cdn.blahaj.zoneLadyButterfly she/her@piefed.blahaj.zone to Science Memes@mander.xyzEnglish · 11 hours agomessage-square142fedilink
minus-squareDigit@lemmy.wtflinkfedilinkEnglisharrow-up10arrow-down1·edit-243 minutes agoHrmm. I read that as resulting in 21. My education system did fail me. I plugged that into ghci as 2+5*(8-5), and it says 17. :( I did (2+5)*(8-5). Doh. [Edit: (Double doh! Mistyped that here as 5+2. XD)]
minus-squareA_Chilean_Cyborg@feddit.cllinkfedilinkEnglisharrow-up15arrow-down1·3 hours agoYou do parenthesis first and then multiplications and then sums, you did parenthesis, then sums, then multiplications, wich is wrong.
minus-squareNils@lemmy.calinkfedilinkEnglisharrow-up5arrow-down1·2 hours ago plugged that into ghci as 5+2*(8-5), and it says 17. You might want to report that error. Or, did you mean 2+5*(8-5)?
minus-squareDigit@lemmy.wtflinkfedilinkEnglisharrow-up1·edit-237 minutes agoOops! Typo. School failed me hard! [Edit: Thanks. Corrected that.]
Hrmm.
I read that as resulting in 21.
My education system did fail me.
I plugged that into ghci as 2+5*(8-5), and it says 17.
:(
I did (2+5)*(8-5).
Doh.
[Edit: (Double doh! Mistyped that here as 5+2. XD)]
You do parenthesis first and then multiplications and then sums, you did parenthesis, then sums, then multiplications, wich is wrong.
You might want to report that error. Or, did you mean 2+5*(8-5)?
Oops! Typo. School failed me hard!
[Edit: Thanks. Corrected that.]