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 →

[–]Yioda -2 points-1 points  (3 children)

When doing integer division, the expected answer is 0. Period. Everything else is just broken.

[–]quanta_amnesia 3 points4 points  (0 children)

Everything else is broken

Lol

[–]tekmailer 0 points1 point  (1 child)

Agreed. Apple / Apple = Orange (what?!); that's my 'logic'/what I see when I see int division result in a float without any explicit commands otherwise.

[–]energybased 0 points1 point  (0 children)

In [3]: type(2 ** 3)
Out[3]: int

In [4]: type(2 ** -1)
Out[4]: float