+ 1

I don't get how the ℅ operator work at all !!

27th Jul 2017, 12:43 PM
abdallah saeed
abdallah saeed - avatar
7 Réponses
+ 9
on what language ?
27th Jul 2017, 12:44 PM
Art456
Art456 - avatar
+ 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
27th Jul 2017, 12:51 PM
Hatsy Rei
Hatsy Rei - avatar
+ 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
27th Jul 2017, 1:35 PM
Hatsy Rei
Hatsy Rei - avatar
0
c++ it has the same functions in other languages ; doesn't it !
27th Jul 2017, 12:47 PM
abdallah saeed
abdallah saeed - avatar
0
in Python it's for finding the remainder
27th Jul 2017, 12:48 PM
God Usopp
God Usopp - avatar
0
does it have any other functions in a different language ?? Hatsy Rei
27th Jul 2017, 1:01 PM
abdallah saeed
abdallah saeed - avatar
0
just the remainder of a sum
27th Jul 2017, 2:27 PM
D_Stark
D_Stark - avatar