What is the name for this operation? Is it division by modulo? I'm really confused.
Here results will be always from 0 to 7, whichever dividend is.
-1 % 8 = 7
-7 % 8 = 1
-8 % 8 = 0
If previous operation is a division by modulo, so how I should name this operation?
Here results will be from -7 to 7.
-1 % 8 = -1
-7 % 8 = -7
-8 % 8 = 0
I'm totally noob in math.
I'm asking this question, because, for example, in Python programming language % operator will work as in first example I've given. In C / C++ / C# % operator will work as in seconds example. This enraged me, when I was debugging my program; I've thought % operator in C will work exactly the same as in Python.
modoperation name isdivision by modulo? And other --division with remainder? I'm asking about terminology. I'm noob in math and English language ;d – Anonymous Oct 03 '18 at 21:46modulooperator, and C uses theremainderoperator. – Rushabh Mehta Oct 03 '18 at 21:46division by modulo&division with remainder? Sorry for stupid question ;d – Anonymous Oct 03 '18 at 21:49