Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
is anybody able to tell me how mod function works?
why is
mod(-4,3)=2 ????
It's in detail explained here:
Euclidean division - Wikipedia, the free encyclopedia
In your example, the quotient would be -2 and the remainder 2:
-2*3 +2 = -4
It's in detail explained here:
Euclidean division - Wikipedia, the free encyclopedia
In your example, the quotient would be -2 and the remainder 2:
-2*3 +2 = -4