CheeseMunchy wrote:
When I receive [mod button hit] set (theanswer) to <(1st number) mod (2nd number)>?
Not exactly what I meant
I mean where it comes in the Order of Operations:
Parentheses (Including Sine Cosine Tangent etc.)
Square Roots and Exponents
Multiplacation/Division
Addition/Subtraction
Offline
According to most sources I found on Google, in most languages, such as C-based ones, % (mod or modulo) takes the same precedence as multiplication and division. However, there are always exceptions, so you should test it to make sure.
Offline
Greenatic wrote:
According to most sources I found on Google, in most languages, such as C-based ones, % (mod or modulo) takes the same precedence as multiplication and division. However, there are always exceptions, so you should test it to make sure.
Ok thanks!
Offline
laptop97 wrote:
Greenatic wrote:
According to most sources I found on Google, in most languages, such as C-based ones, % (mod or modulo) takes the same precedence as multiplication and division. However, there are always exceptions, so you should test it to make sure.
Ok thanks!
No problem! Glad I could help!
Offline
I'd assume it is the same as division, its parent.
Offline
It comes after division -- because it returns the remainder of the division operation itself.
Last edited by rdococ (2012-02-20 08:00:46)
Offline
Closed by request.
Offline