0

X%y what does it mean?

Example: 4%2.. How do I have to calculate it?

17th Jul 2016, 2:47 PM
Tom Stahlberg
Tom Stahlberg - avatar
5 odpowiedzi
+ 2
that is modulus, reminder of the division. example the division 5 % 2 = 1 . because 5 % 2 get 2 and reminder 1. so 4%2 = 0
17th Jul 2016, 3:18 PM
Ahmad Choiruman Q
Ahmad Choiruman Q - avatar
+ 1
% is the result minus the rest 4%3 = 1
17th Jul 2016, 3:10 PM
Vitor Aquino
Vitor Aquino - avatar
+ 1
4℅2=0 because ℅ means remainder
18th Jul 2016, 8:26 AM
Amit
Amit - avatar
0
Ah ok thank you.
17th Jul 2016, 3:22 PM
Tom Stahlberg
Tom Stahlberg - avatar
0
that is called modulo or modulus operator in programming by which we can get the reminder between two variables
18th Jul 2016, 7:17 AM
Collection Zone
Collection Zone - avatar