0
Someone please tell me what is the meaning of "//" I can't understand properly.
3 Respuestas
+ 3
You can see floor division like division with integers.
7//4 = 1 (because 4 fits only 1 times into 7)
12//4 = 3 (because 4 fits 3 times into 12)
5//7 = 0 (7 doesn't fit into 5)
It only gets a bit complicated when it comes to negative numbers:
33//4 = 8
-33//4 = -9
See explanation from Shaurya Kushwaha
+ 2
//(double slash) means Floor division the quotient after dividing two numbers is floored floor means round to lower number or the number without decimal or point.