+ 1
I don't get how the ℅ operator work at all !!
7 Respostas
+ 9
on what language ?
+ 9
It is the modulus operator. Simply speaking, it returns the remainder of a division. E.g.
5/2 = 2, remainder 1
so 5%2 = 1
Similarly,
4%2 = 0
7%2 = 1
10%7 = 3
+ 8
@abdallah saeed
The modulus operator (%) is used across a wide variety of programming languages.
That said, the results may differ.
https://stackoverflow.com/questions/1907565/c-JUMP_LINK__&&__python__&&__JUMP_LINK-different-behaviour-of-the-modulo-operation
0
c++
it has the same functions in other languages ; doesn't it !
0
in Python it's for finding the remainder
0
does it have any other functions in a different language ??
Hatsy Rei
0
just the remainder of a sum