0

What is the module operator (x%y)?

I speak Spanish so when I saw this symbol % I thought it was per centage but then I saw an example and It wasn't the percentage...

21st Jul 2016, 1:05 PM
smr
5 odpowiedzi
+ 3
The modulo symbol (%), or the modulus, is an operator which yes, returns the remainder of an equation. For example: 100 % 10 = 0 50 % 7 = 1 7 % 4 = 3 One very popular and beginner way to use the modulus, is telling whether or not an integer is even or not. x % 2 = 0 Means even x % 2 = 1 Means odd
21st Jul 2016, 2:40 PM
Cohen Creber
Cohen Creber - avatar
+ 1
It returns the remainder
21st Jul 2016, 1:33 PM
john Peralta
+ 1
En español es el módulo.
28th Aug 2016, 12:51 AM
Vicente Hernández Pérez
Vicente Hernández Pérez - avatar
0
ok thanks
21st Jul 2016, 1:36 PM
smr
0
Thank you very much Cohen Creber.
21st Jul 2016, 3:08 PM
smr