this post was submitted on 12 Dec 2023
858 points (96.3% liked)

Memes

45132 readers
1515 users here now

Rules:

  1. Be civil and nice.
  2. Try not to excessively repost, as a rule of thumb, wait at least 2 months to do it if you have to.

founded 5 years ago
MODERATORS
858
6÷2(1+2) (programming.dev)
submitted 9 months ago* (last edited 9 months ago) by wischi@programming.dev to c/memes@lemmy.ml
 

https://zeta.one/viral-math/

I wrote a (very long) blog post about those viral math problems and am looking for feedback, especially from people who are not convinced that the problem is ambiguous.

It's about a 30min read so thank you in advance if you really take the time to read it, but I think it's worth it if you joined such discussions in the past, but I'm probably biased because I wrote it :)

you are viewing a single comment's thread
view the rest of the comments
[–] TokyoMonsterTrucker@lemmy.dbzer0.com 7 points 9 months ago* (last edited 9 months ago) (1 children)

It will give 9, just like my 89 emulator. It treats division like a fraction. For a TI, the entire denominator of a fraction needs to be in parentheses or you get into trouble.

[–] SmartmanApps@programming.dev 1 points 5 months ago* (last edited 5 months ago)

It treats division like a fraction

Which is why it gives the wrong answer.

Also you shouldn't be adding a dot between the 2 and the brackets - that also changes the answer.