Floor division and modulo operator?
Can i ask? what is floor division("//") and modulo operator ("%")? I still don't get it in my school there is no lesson with it, so can anyone explain it to me. Thank you in advance!
Floor division divides and output the quotient rounded down to the nearest integer Example: 5//2 => 2 #because 5/2 is 2.5 rounded down so 2 Modulo operator divides and output the remainder Example: 5%2 => 1 #the remainder is 1
If there is no remainder, then the modulo operator returns 0 :) 100 % 20 => 0
so what if in modulo operator there is no remainder? is it not applicable for modulo operator?
ok thanks alot now i understand
Why are my users being logged as [object Object] when logging my array/user instead of giving me the values [name, age]?
JS in sololear is latest version or older? What do we use often VAR or LET and CONST?? I Have VAR is no longer used is it true??
C++ Question re stringstream
Как сравнивать строки в Phyton?