- 2
Please explain about floor division??
4 Respuestas
+ 8
Floor division returns the quotient of division operation.
Example : If 5 is divided by 2, 2 is quotient and 1 is remainder. So, 5 // 2 is 2.
+ 3
Check out my comment here:
https://www.sololearn.com/Discuss/425158/
0
It provides an integer answer, in technical terms, it does just as Krishna said.
A good way to think of it is asking the question:
How many times can you fit this number under another?
Example:
20 // 7
7 fits into 20, 2 times.
7, 14
- 1
what is the answer for 5/2 and 5//2?