0
what is floor devision
3 Answers
+ 6
People often got confuse between simple divison and floor division. There is very basic difference Normal division gives floating point number and floor division gives whole number. see below example
12/6 = 2.0 not 2 # Floating Point Number
12//6 = 2 not 2.0 # Whole Number
/ - is normal division it will give floating value
// - is floor division it will give integer value
+ 4
5//2=2 because it returns an int
0
In floor division Output is always integer