+ 3
What is difference between floor division operator (//) and normal division operator (/)??
they both return the quationt . Then whts the difference jst tht normal division returns it in decimal format.
3 odpowiedzi
+ 3
5/2=2.5
5//2=2 ( only integer part..excluding remainder )
+ 1
u can say.....
int(a/b)=a//b....
more logically
0
Pyton.
// Floor division operand is very simple with positive digit. But don't mistake with negative digits!
9//4=2
11//3=3 -11//3=-4
10//3=3 -10//3=-4
10//-3=-4
9.01//3=3.0 9.01//-3=-4
9.01/3=3.00333333333334