+ 1

How?

20//6 output: 3

2nd Apr 2017, 2:07 PM
Ajit Bhatambre
Ajit Bhatambre - avatar
4 Answers
+ 4
or in other words: x // y tells you how often y fits into x as a whole ! In your example 6 fits at maximum 3 times into twenty because 3 times 6 = 18 <=20 but 4 times 6 would be 24 > 20... so 4 times wouldn't fit anymore....
2nd Apr 2017, 2:38 PM
Arcturus
+ 7
Just manually divide the first number by second one and ignore the decimals. 20 // 6 = 3.333 = 3 30 // 6 = 5.000 = 5 40 // 6 = 6.666 = 6 even 9.9999 = 9
2nd Apr 2017, 2:20 PM
Cyrus Ornob Corraya
Cyrus Ornob Corraya - avatar
+ 4
The // operator divides the first number by the second and rounds down. Therefore, 20 // 6 is 3.333333 rounded down, or 3.
2nd Apr 2017, 2:11 PM
DaemonThread
DaemonThread - avatar
+ 1
could you give neat answer?
2nd Apr 2017, 2:19 PM
Ajit Bhatambre
Ajit Bhatambre - avatar