• hallettj@beehaw.org
    link
    fedilink
    English
    arrow-up
    6
    ·
    7 months ago

    The comment from subignition explains that the phone’s answer, 16, is what you get by strictly following PEMDAS: the rule is that multiplication and division have the same precedence, and you evaluate them from left-to-right.

    The calculator uses a different convention where either multiplication has higher priority than division, or where “implicit” multiplication has higher priority (where there is no multiply sign between adjacent expressions).

      • hallettj@beehaw.org
        link
        fedilink
        English
        arrow-up
        2
        ·
        7 months ago

        The parentheses step only covers expressions inside parentheses. That’s 2 + 2 in this case. The times-2 part is outside the parentheses so it’s evaluated in a different step.