0

Why python always output float value on division???

9th Oct 2017, 3:25 AM
Kshitiz
4 Respostas
+ 7
use // 5//2 gives you dead 2 without floats // is called floor division
9th Oct 2017, 3:27 AM
Abdur-Rahmaan Janhangeer
Abdur-Rahmaan Janhangeer - avatar
+ 2
oh so we can use // for exact value thxx mann !!!😇😇
9th Oct 2017, 3:32 AM
Kshitiz
+ 2
You have to import floor division from the maths module
9th Oct 2017, 3:37 AM
Poet🎭
Poet🎭 - avatar
0
thxx i got it now 😇
9th Oct 2017, 3:38 AM
Kshitiz