421
submitted 1 year ago by Toes@ani.social to c/196
you are viewing a single comment's thread
view the rest of the comments
[-] Swallowtail@beehaw.org 5 points 1 year ago

Yeah, you could easily make this more straightforward by putting parentheses around 8÷2. It's like saying literature sucks because Finnegans Wake is incomprehensible.

[-] SmartmanApps@programming.dev 1 points 9 months ago

you could easily make this more straightforward by putting parentheses around 8÷2

But that would be a different expression with a different answer (16 rather than 1). This is the mistake made by the programmer of the e-calc - treats it as though there's extra brackets there when there isn't.

this post was submitted on 03 Dec 2023
421 points (100.0% liked)

196

16757 readers
2585 users here now

Be sure to follow the rule before you head out.

Rule: You must post before you leave.

^other^ ^rules^

founded 2 years ago
MODERATORS