the quotients n reminder r confusing me even i don't know the meaning of these things please help me | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 1

the quotients n reminder r confusing me even i don't know the meaning of these things please help me

28th Dec 2017, 3:45 PM
vishal
3 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)
28th Dec 2017, 3:54 PM
David Akhihiero
David Akhihiero - avatar
+ 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.
28th Dec 2017, 4:49 PM
Pedro Maimere
Pedro Maimere - avatar
+ 1
thanx yo all of you for helping me
28th Dec 2017, 10:34 PM
vishal