What does the % symbol mean again? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 1

What does the % symbol mean again?

6th Feb 2017, 7:08 AM
Brandon
3 Respostas
+ 11
It is the modulus operator. It returns the remainder of a mathematical expression. E.g. 5%2 // outputs 1 6%3 // outputs 0 2%3 // outputs 2
6th Feb 2017, 7:19 AM
Hatsy Rei
Hatsy Rei - avatar
+ 2
It's the modulus operator
6th Feb 2017, 11:18 AM
Ashutosh Saraf
Ashutosh Saraf - avatar
+ 2
It's main modulus.
6th Feb 2017, 11:22 AM
1971 ā€¢ Anas
1971 ā€¢ Anas - avatar