I think I missed something. What does the % symbol do? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

I think I missed something. What does the % symbol do?

2nd Aug 2016, 8:57 AM
computatoe
computatoe  - avatar
3 Answers
+ 4
take this for example: 9%4 = 1 you can fit two 4s in 9 and the remainder is 1
3rd Aug 2016, 5:33 PM
mehmeh
mehmeh - avatar
+ 3
it's the remainder operator
3rd Aug 2016, 5:32 PM
mehmeh
mehmeh - avatar
+ 1
also called modulus or modulob sometimes
6th Aug 2016, 8:09 PM
‎‏‎‏‎Joe
‎‏‎‏‎Joe - avatar