Solved

# calculating MOD on a calculator

Posted on 2008-11-13
15,286 Views
I am trying to figure out how to calculate MOD on a calculater and the following website seems to work well for large numbers;
http://forums.xkcd.com/viewtopic.php?f=17&t=15092
but what if I want to calculate 10MOD11 which I know is -1
I do as follows;
10/11=0.909
0.909-0=0.909
0.909*11=10 ??

Can someone clarify how to calculate this on a calculator?

thanks
0
Question by:jtiernan2008

LVL 73

Accepted Solution

as was mentioned in your previous question,  -1 and 10 are both "correct" answers to the MOD question.  Which one you really want depends on exactly the question being asked.

So, what exactly is it you want to do?

If you want the -1 result,  is that because 10 is smaller than 11?

If so,  then for a < b
you can get your negative results like this ....  b*(a/b) - b
for a>= b you will get your results like this...  b*(a/b)
0

LVL 73

Expert Comment

in the above (a/b) should be the fractional remainder of that division, not the division itself.

0

LVL 22

Expert Comment

In modulo 11 arithmetic, -1 is equivalent to 10.

5 + (-1) = 4
5 + 10 = 15, but we're modulo 11 so 15 = 4 + 11 = 4.

Whenever a + b*m = c + d*m, a and c are equal modulo m.
0

LVL 1

Author Closing Comment

those formuales are actually better than what is on the website
0

## Featured Post

### Suggested Solutions

Simple Random Sample 2 43
Perecntage 4 39
Revenue table 8 52
Introduction On a scale of 1 to 10, how would you rate our Product? Many of us have answered that question time and time again. But only a few of us have had the pleasure of receiving a stack of the filled out surveys and being asked to do somethi…
How to Win a Jar of Candy Corn: A Scientific Approach! I love mathematics. If you love mathematics also, you may enjoy this tip on how to use math to win your own jar of candy corn and to impress your friends. As I said, I love math, but I gu…
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…