• pixeltree@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    9
    arrow-down
    3
    ·
    7 hours ago

    Inside the parens first, so it becomes 2 + 5*3

    Then tou do multiplication before addition, so 2 + 15

    Then addition, so 17

    • SSUPII@sopuli.xyz
      link
      fedilink
      English
      arrow-up
      18
      ·
      7 hours ago

      Yeah I know that. But I was feeling confused as to why it was here. That’s why I was feeling trolled, because it made me doubt basic math for being posted in a memes community.

      • JackbyDev@programming.dev
        link
        fedilink
        English
        arrow-up
        5
        arrow-down
        2
        ·
        7 hours ago

        They did the joke wrong. To do it right you need to use the ÷ symbol. Because people never use that after they learn fraction, people treat things like a + b ÷ c + d as

        a + b
        -----
        c + d
        

        Or (a + b) ÷ (c + d) when they should be treating it as a + (b ÷ c) + d.

        That’s the most common one of these “troll.math” tricks. Because notating as

        a + b + d
            -
            c
        

        Is much more common and useful. Do people get used to grouping everything around the division operator as if they’re in parentheses.