0
Characters and %
guys im new to here and i have been wondering how does code.com etc make a platform where you can see a character move and stuff and what does % mean in a formula?
3 Antworten
+ 7
% is the modulus operator. It returns the remainder of a division. E.g.
5%2 returns 1
9%3 returns 0
11%7 returns 4
6%7 returns 6
+ 3
ex: 7%3= 1
- 2
because 7/3:
2
___
3 | 7
6
----
1
For that, the answer of 7%3 = 1