calculating MOD on a calculator

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
LVL 1
jtiernan2008Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

sdstuberCommented:
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
sdstuberCommented:
in the above (a/b) should be the fractional remainder of that division, not the division itself.

0
NovaDenizenCommented:
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
jtiernan2008Author Commented:
those formuales are actually better than what is on the website
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Math / Science

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.