Hacker News new | past | comments | ask | show | jobs | submit login

multiplication and division have the same precedence, and division (like most operations) is left-associative. For example, exponentiation is right-associative, so 2^3^2 = 2^9 = 512, not 64.



While you're technically correct, of the standard four half (+, *) are both left- and right-associative. / and - are the ones that are only left-associative.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: