+ 3
I don't understand how does % works?
how 38%5 is 3. can someone explain to me in the most plain English. have no idea why I don't get it. I know that weird situation but pls
22 Answers
+ 14
Modulus is remainder value after the closest division. In case of 38 modulus 5. The closest we can go is 35(5 times 7). The remaining number is modulus. Three in this case. 38-35 equals 3. Hope this helps.
+ 5
38%5 = 5+5+5+5+5+5+5+(3)
12%5 = 5+5+(2)
+ 2
it's simple division Guyz...it must not be complicated---The 38 is not divisible by 5. the closest we can divide 38 by 5 is 7 times (35) and the Rest remaining digits (38-35) which is the Remainder is your Modulus.
+ 2
% works for getting remember of division.
+ 1
yeah i still find that confusing
+ 1
simply ℅ gives remainder as
35%5 here remainder is 0 and quotient is 5.
and in ur eg.. 38%5 here remainder is 3 and quotient is 5
+ 1
what if modulus like this : 4%5?
0
Well I guess it's the remainder of a division statement. For example if you do 9 % 2 since 9 divided by 2 is 8 r1, 9 % 2 = 1
0
38:5=7*5+3 38%5=3
0
how many yin can you divide 5 into 38? 7 times. that's makes 35. 38 - 35 = 3. therefore the remainder is 3.
0
you can division 38/5 that is 7 time write left 3. this 3 is a module. example: 5*7=35and then +3=38 I think u understand
0
also if you want to find x%y=z the number z is smaller than y do it yourself and you can learn easily..:)
0
5x7=35
38-35=3
modulo = 3
0
as expalined above % is modulo operator, ot simply returns the reminder of the division.
u can use the same for even odd test
if(num%2==0)// it checks if number is completely divisible by 2
alert("Even");
else
alert("Odd");
0
reminder the part of number remaine which output not int .. 13%5 -> 10/5 and 3/5 .. 10/5 = 2 int ..
3/5 wont be int .. so that 3 is reminder ..
0
Modulus(%) is remainder which is remaining number you get after dividing. Example: 38%5=3 as 35 is divided by 5 but remaining 3 is remainder.
It is simple math which you should have read in 3rd grade..
0
38 / 5 = 7 and the left over is = 3.
0
38 / 5 = 7
5 * 7 = 35
38 - 35 = 3
0
it's what you have left after you divide. say for instance 38÷5. 5 goes into 38 seven times stopping at 35. how much is left over from the 38? three.
0
thanks everybody I've learned it