0

I did't understand floor division

21st Jun 2017, 8:42 AM
Nishant Gupta
Nishant Gupta - avatar
3 ответов
+ 1
a floor function divide a number and round off to nearest integer no. exe : 5/2== 2.5 than 5//2== 2 5/-2==-2.5 than 5//-2 ==-3
21st Jun 2017, 8:57 AM
Rohan Vijayvergiya
Rohan Vijayvergiya - avatar
+ 1
Here is an example: 25 / 6 = 4.166 so you can say : 25 = 6*4.166 but you can say instead: 25 = 6*4 + 1 because 25//6 = 4 25%6 = 1 floor division returns the biggest integer which fits into the divident.
21st Jun 2017, 8:57 AM
Amarie
+ 1
Thanks
21st Jun 2017, 9:15 AM
Nishant Gupta
Nishant Gupta - avatar