0

what is floor devision

30th Oct 2016, 11:33 PM
hazem el sherbiny
hazem el sherbiny - avatar
3 Antworten
+ 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
31st Oct 2016, 12:47 AM
Waqas Asghar Bhalli
Waqas Asghar Bhalli - avatar
+ 4
5//2=2 because it returns an int
1st Nov 2016, 3:04 PM
Rodrigo Tallar
Rodrigo Tallar - avatar
0
In floor division Output is always integer
31st Oct 2016, 9:06 AM
Abhishek Thakur
Abhishek Thakur - avatar