0

What's floor divison

I don't understand it please can anyone explain

23rd Apr 2017, 4:02 PM
Mahmoud Yousry
Mahmoud Yousry - avatar
4 Respuestas
23rd Apr 2017, 4:04 PM
Shamima Yasmin
Shamima Yasmin - avatar
+ 10
Division results in quotient and remainder, right? Floor Division returns quotient.
23rd Apr 2017, 4:58 PM
Krishna Teja Yeluripati
Krishna Teja Yeluripati - avatar
+ 2
It is the quotient of Division, removing the decimal part. Ex: quotient of 2.5 returns 2 quotient of 2.8 returns 2
23rd Apr 2017, 5:04 PM
chunduri
chunduri - avatar
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 ]
24th Apr 2017, 5:48 AM
Álvaro