+ 1
the quotients n reminder r confusing me even i don't know the meaning of these things please help me
4 Respostas
+ 10
Let me try to explain with an example:
TrueDivision: 13 / 2 = 6.5
FloorDivision: 13 // 2 = 6(neglect the decimal part)
Remainder/Modulo: 13 % 2 = 1(Why? because if you use 13 to divide 2(FloorDivision) the result is 6 remainder 1)
+ 5
Note that, for any division:
dividend = divisor x quotient + remainder
Dividend is the number being divided, also called numerator.
Divisor is the number you divide the dividend, also called denominator.
Quotient is the result.
The remainder is different from zero if the divisor does not perfectly divides the dividend. Hence:
0 <= remainder < divisor
Using fractions, one could write:
dividend/divisor = quotient + remainder/divisor
Which is just another way to express the equation above.
+ 1
thanx yo all of you for helping me