💡𝚂𝗆𝖺𝗋𝗍𝗆𝖺𝗇 𝙰𝗉𝗉𝗌📱@programming.devtoProgrammer Humor@lemmy.ml•Python is great, but stuff like this just drives me up the wallEnglish
1·
5 months ago-5**2 is apparently -25 because of the order of operations)
Which is correct
-5**2 is apparently -25 because of the order of operations)
Which is correct
Yeah, base ten really screws around with programming. You specifically have to use a decimal type if you really want to use it (for like finance or something), but it’s much slower.
Yeah, they’re doing an upgrade right now. Yes, it’s the Maths explanation - -25 is the correct answer.