+0  
 
0
749
2
avatar

what is the difference between modulo and remainder

 Dec 18, 2014

Best Answer 

 #2
avatar+118608 
+5

There is a difference between modulus and remainder. For example:

-21 mod 4 is 3 because -21 + 4 x 6 is 3.

But -21 divided by 4 gives -5 with a remainder of -1.

For positive values, there is no difference.

 Dec 19, 2014
 #1
avatar+23245 
0

The modulo is the remainder when you have whole number division.

Read Melody's answer ....

 Dec 19, 2014
 #2
avatar+118608 
+5
Best Answer

There is a difference between modulus and remainder. For example:

-21 mod 4 is 3 because -21 + 4 x 6 is 3.

But -21 divided by 4 gives -5 with a remainder of -1.

For positive values, there is no difference.

Melody Dec 19, 2014

0 Online Users