3 ms·
It does not. Modulus is only defined for integers. The point was that the 57 or 75 does not matter when you are looking at the remainder. Modulus in this case
by x86x87 3y ago
It does not. Modulus is only defined for integers. The point was that the 57 or 75 does not matter when you are looking at the remainder.
Modulus in this case means divide into 7 parts and when you cannot divide anymore keep the reminder.
If x = a*b+c
x ℅ a = c and x % b = c
- imheretolearn 3y ago41 = 7*5 + 6 41 % 7 = 6 41 % 5 = 1
- x86x87 3y agoGood point. But it's still integer division with a remainder