![]() |
%
How exactly do you use %? What is it used for?
=X |
Basically, % divides by the number behind percent, but leaves the part which can't be divided into a whole number.
3%2=1 500%5=0 |
What is it useful for?
|
It's used in clocks (only thing I've seen it in) and it tells the var/string what the limit is and when to go back to 0
like: blah= blah2%60; when it reaches 60, it will reset back to 0 [EDIT] That's what I think it is for, I may be wrong =/ [/EDIT] |
Quote:
NPC Code:Would mean that even if you are selecting your last weapon it'd reset back to the first one if you push right while on that weapon. I also used it for the online time system Munkee requested. |
Quote:
like you have 38 apples and this guy takes 35 apples if you say something like currentapples%35 would = 3 |
[screen_name says:]
what if you do this 73 % 35 = 3 apples left !@!@!?!@ so you could use that formula you would just have to subtract 73 - 35 = 38 apples left, ahh more like it |
| All times are GMT +2. The time now is 11:35 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.