0
How does // works
4 Réponses
+ 2
// is floor division. You do division and after that you remove digits after the decimal point. For example: 9/2 gives 4.5 and 9//2 gives 4. Be carful when you when you devide negative number, because floor goes towards negative infinity. Fo example -9//2 gives -5.
+ 1
x//y is like math.floor(x/y)
0
could you tell something more about negative division in python
0
It is same basic math rules.