0
How do you explain that 7 % 8 = 7?
I got the idea when you extract the modulo from a bigger number like 8%7=1, but what rules you apply on the other side?
4 Answers
+ 2
where is a problem?
7 / 8 gives you 0, the remainder is 7.
everything is correct, you can't divide 7 by 8 whole parts.
+ 1
The result of modulus is just the remainder of division,
nothing more and nothing less. There's difference between dividing 8 by 7 and 7 by 8. In the first case, 7 goes into 8 one time with remainder of 1, while in the second case 8 goes into 7 zero times, as it is bigger, with a remainder of 7.
+ 1
Ok, so if you make a ('smaller number' modulus 'bigger number') you will always get the 'smaller number' as a result.
0
Modulus works like this if you do 26%5 it divides 26 with 100 and then it multiply by 5 and you have also to consider the approximation