+ 1

Why 20//6=3? Please help me

1st Aug 2017, 11:09 AM
sairah
sairah - avatar
4 Respuestas
+ 7
20/6 = 3.33 but floor division gives only the integer part without including the decimal part just like yours print(20//6, "floor division") print(20/6, "normal division")
1st Aug 2017, 11:16 AM
Nomeh Uchenna Gabriel
Nomeh Uchenna Gabriel - avatar
+ 4
// is floor division 20/6 you will see the decimal but if 20//6 It remove all decimal out then you will see integer
1st Aug 2017, 11:14 AM
Yanothai Chaitawat
Yanothai Chaitawat - avatar
+ 1
ok thanks a lot
1st Aug 2017, 11:17 AM
sairah
sairah - avatar
0
oo thanks very much
1st Aug 2017, 11:14 AM
sairah
sairah - avatar