menu
Roblox Forum Archive
Home
User Search
Forums
Donate
search
settings
Home
User Search
Forums
Donate
launch
Go to User Dashboard
Forums
Scripting Helpers
Quick simple question... What does the % do?
chevron_left
chevron_left
chevron_left
of
1
chevron_right
chevron_right
chevron_right
Quick simple question... What does the % do?
noobertuber
Join Date: 2007-01-16
Post Count: 2321
#63571016
Tuesday, February 28, 2012 6:55 AM GMT
What does the % do when used with a number? Sincerely, Noobertuber
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
Merlin11188
Join Date: 2007-12-20
Post Count: 4158
#63571047
Tuesday, February 28, 2012 6:58 AM GMT
% is the modulus operator, and it returns the remainder of division. 7/3 = 2 r1, so 7 % 3 = 1. 16/4 = 4 r0, so 16 % 4 = 0.
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
xXxMoNkEyMaNxXx
Join Date: 2008-10-03
Post Count: 3120
#63571185
Tuesday, February 28, 2012 7:08 AM GMT
precisely.
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
chevron_left
chevron_left
chevron_left
of
1
chevron_right
chevron_right
chevron_right