0
I did't understand floor division
3 Antworten
+ 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
+ 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.
+ 1
Thanks