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?

31st Jan 2017, 2:17 AM
Unlucky
Unlucky - avatar
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
31st Jan 2017, 2:36 AM
Hatsy Rei
Hatsy Rei - avatar
+ 3
ex: 7%3= 1
31st Jan 2017, 3:28 AM
Raphael
Raphael - avatar
- 2
because 7/3: 2 ___ 3 | 7 6 ---- 1 For that, the answer of 7%3 = 1
31st Jan 2017, 5:49 AM
bri
bri - avatar