Riffdis
|
  |
| Joined: 20 Nov 2010 |
| Total Posts: 1345 |
|
|
| 30 Apr 2012 12:40 AM |
I'm just reading the wiki over, and over. I know how to script, im just stuck on how to find something like "11%3=2" on a calculator. It says on the wiki
"% Modulus (Percent) (Returns the remainder of a division between two numbers e.g. 11 % 3 = 2)"
I don't get it .-. |
|
|
| Report Abuse |
|
Drenkus
|
  |
| Joined: 03 May 2009 |
| Total Posts: 2380 |
|
|
| 30 Apr 2012 12:44 AM |
"It's the modulus operator, as mentioned, which returns the remainder of a division operation.
Examples: 3%5 returns 3, as 3 divided by 5 is 0 with a remainder of 3.
5 % 10 returns 5, for the same reason, 10 goes into 5 zero times with a remainder of 5.
10 % 5 returns 0, as 10 divided by 5 goes exactly 2 times with no remainder."
-Google |
|
|
| Report Abuse |
|
Riffdis
|
  |
| Joined: 20 Nov 2010 |
| Total Posts: 1345 |
|
| |