0
What's floor divison
I don't understand it please can anyone explain
4 Respuestas
+ 26
You can get idea from the following threads :)
https://www.sololearn.com/discuss/336425/?ref=app
https://www.sololearn.com/discuss/336434/?ref=app
+ 10
Division results in quotient and remainder, right? Floor Division returns quotient.
+ 2
It is the quotient of Division, removing the decimal part.
Ex: quotient of 2.5 returns 2
quotient of 2.8 returns 2
0
@chunduri: watch it! it's not only about removing the decimal part when dealing with negative numbers: -5//2 yields -3 (which is the quotient, actually).
[EDIT: https://www.sololearn.com/Discuss/338849/?ref=app ]