+ 2

What's the meaning of floor division??

22nd Jul 2020, 6:08 PM
Samanta
Samanta - avatar
3 Answers
+ 8
You mean this // It's same as normal division but outputs it without the comma meaning only the it part Like for e.g : 30/4= 7.5 30//4=7
22nd Jul 2020, 6:13 PM
Fakhri Mrabet
Fakhri Mrabet - avatar
+ 7
In addition to the possibility of creating an integer directly with a floor division, there is also the option of creating an integer from a float value with the math.floor() method, or by using just int() function.
22nd Jul 2020, 6:24 PM
Lothar
Lothar - avatar