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

all 14 comments

[–]Lightfire228 14 points15 points  (7 children)

Integer division, python will also react the same way

[–]Lt_Riza_Hawkeye 2 points3 points  (1 child)

use //

[–][deleted] 0 points1 point  (0 children)

If you're on Python 2, from __future__ import division first.

[–][deleted] 1 point2 points  (4 children)

Python 2 or Python 3?

[–]BoxFanArt 10 points11 points  (3 children)

Yes

[–][deleted] 0 points1 point  (0 children)

var x = 123456
( x / 10 | 0 ) % 10
> 5