## Using a calculator to calculate the modulus (no mod func)

For the discussion of math. Duh.

Moderators: gmalivuk, Moderators General, Prelates

nemo
Posts: 8
Joined: Fri Nov 16, 2007 12:26 am UTC

### Using a calculator to calculate the modulus (no mod func)

Ok so I'm not a genius at maths. Never have been, probably never will. I have a class test next week on number theory and I can't remember the method for calculating a modulus with a calculator. Can you guys and girls let me know how you would go about it. No the calculator doesn't have a mod or % function. Thx.

genevabeagle
Posts: 42
Joined: Tue Dec 12, 2006 11:32 pm UTC

### Re: Using a calculator to calculate the modulus (no mod func)

While (obviously) I'd recommend getting a hold of another calculator, in the meantime you can replicate the modulo function. For some x modulo y, divide x by y, subtract the remaining whole number, and multiply the remaining decimal (should be zero point something) by y.

For example, 324 modulo 15:

324/15 = 21.6
21.6 - 21 = 0.6
0.6*15 = 9

324 (modulo 15) == 9

SimonM
Posts: 280
Joined: Sat Jul 21, 2007 4:49 pm UTC
Location: Guernsey, CI
Contact:

### Re: Using a calculator to calculate the modulus (no mod func)

genevabeagle wrote:While (obviously) I'd recommend getting a hold of another calculator, in the meantime you can replicate the modulo function. For some x modulo y, divide x by y, subtract the remaining whole number, and multiply the remaining decimal (should be zero point something) by y.

For example, 324 modulo 15:

324/15 = 21.6
21.6 - 21 = 0.6
0.6*15 = 9

324 (modulo 15) == 9

Or, if you calculator has a tendency to round

For example, 324 modulo 15:

324/15 = 21.6
15*21 = 315
324-315=9
mosc wrote:How did you LEARN, exactly, to suck?

nemo
Posts: 8
Joined: Fri Nov 16, 2007 12:26 am UTC

great, thx guys.