Where does modulo come in the mathematical order of operation? I am guessing it is similar to division, but before or after?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This depends on the language, but in C style languages
%is the same precedence as*and/. This means that if it appears in the same expression (without parentheses) the order depends on the associativity. In this case%is usually left-associative, so the operators will be executed in left-to-right order.