Shonysky
|
  |
| Joined: 05 Aug 2013 |
| Total Posts: 361 |
|
|
| 11 Jun 2014 01:37 PM |
what is it? is it the 3% of 50? |
|
|
| Report Abuse |
|
|
Trioxide
|
  |
| Joined: 29 Mar 2011 |
| Total Posts: 32902 |
|
| |
|
Shonysky
|
  |
| Joined: 05 Aug 2013 |
| Total Posts: 361 |
|
| |
|
Trioxide
|
  |
| Joined: 29 Mar 2011 |
| Total Posts: 32902 |
|
|
| 11 Jun 2014 01:40 PM |
| If you had tested this in the first place, you wouldn't be here waiting. |
|
|
| Report Abuse |
|
|
|
| 11 Jun 2014 01:40 PM |
A % B --> Remainder of A / B
So, 50%3 = 2, because 50/3 = 16 R 2. |
|
|
| Report Abuse |
|
|
Shonysky
|
  |
| Joined: 05 Aug 2013 |
| Total Posts: 361 |
|
|
| 11 Jun 2014 01:41 PM |
| @Trio i've already tested, and i didn't understand |
|
|
| Report Abuse |
|
|
Shonysky
|
  |
| Joined: 05 Aug 2013 |
| Total Posts: 361 |
|
|
| 11 Jun 2014 01:44 PM |
so... 100%3 = 1???
because 100/3 is 33.33333333, it won't decimals? |
|
|
| Report Abuse |
|
|
RoflBread
|
  |
| Joined: 18 Jun 2009 |
| Total Posts: 3803 |
|
|
| 11 Jun 2014 01:53 PM |
print(23%4) -> 3
4 goes into 23 5 times with a remainder of 3 |
|
|
| Report Abuse |
|
|