Someone please tell me what is the meaning of "//" I can't understand properly. | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

Someone please tell me what is the meaning of "//" I can't understand properly.

10th Feb 2022, 3:18 PM
Pritam Ghosh
3 ответов
+ 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
10th Feb 2022, 3:37 PM
Denise Roßberg
Denise Roßberg - avatar
+ 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.
10th Feb 2022, 3:29 PM
Shaurya Kushwaha