What is the % Arithmetic | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

What is the % Arithmetic

I dont understand what does it means. Can you explain it me? I'm from germany and I dont know the german word for Modul.

10th Aug 2019, 6:18 PM
Alex
Alex - avatar
7 Answers
+ 5
3/2 = 1 with 1 remaining 3%2 = 1 24/7 = 3 r3 7*3= 21 24-21 = 3 24%7 = 3 it is what is remaining after even division.
10th Aug 2019, 6:28 PM
James
James - avatar
+ 4
Thank you now i understand
10th Aug 2019, 6:29 PM
Alex
Alex - avatar
+ 2
Ne der Rest
10th Aug 2019, 6:32 PM
jumping spring
jumping spring - avatar
+ 2
Hi alex Es ist der Rest von a, wenn a / b ganzzahlig geteilt wurde. Zum Beispiel passt die 5 ganzzahlig zwei Mal in die 10 und es gibt keinen Rest, die Modulo ist also 0. 5 passt aber auch in die 11 nur zweimal ganzzahlig. Hier bleibt aber ein Rest von 1. Bei zwölf bleibt 2 usw. Bei 15%5 dann wieder 0 und bei 16 wieder Rest 1. Ich hoffe das hilft. Cheers. C.
10th Aug 2019, 7:06 PM
ChrA
ChrA - avatar
0
es ist der Rest der Teilung
10th Aug 2019, 6:21 PM
James
James - avatar
0
Ist damit der teil hinter dem komma gemeint?
10th Aug 2019, 6:22 PM
Alex
Alex - avatar
0
Danke jetzt hab ich es verstanden
10th Aug 2019, 7:09 PM
Alex
Alex - avatar