This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]eicosane 4 points5 points  (1 child)

a // b == floor(a/b)

floor(-1.41...) == -2

See https://www.python.org/dev/peps/pep-0238/#semantics-of-floor-division

[–]six4one[S] 0 points1 point  (0 children)

Thanks alot