0

What is floor division? (// )

floor division

5th Dec 2016, 9:14 AM
larissastorck
larissastorck - avatar
4 Respostas
+ 2
The floor division , it's a normal division, but the result will be always an integer: 5 / 2 will return 2.5 5 // 2 will return 2.
5th Dec 2016, 9:23 AM
Nahuel
Nahuel - avatar
+ 2
will return the int part only, don't the round up
5th Dec 2016, 9:34 AM
Nahuel
Nahuel - avatar
0
So it gonna return the lowest numeber ?
5th Dec 2016, 9:24 AM
larissastorck
larissastorck - avatar
0
it will return the integer part of the division ex: 9 / 2 = 4.5 but with the floor division the return will be only 4.
17th Jan 2018, 11:42 PM
Leander fernandes da Silveira
Leander fernandes da Silveira - avatar