2 ms·
Slight correction: it always rounds toward zero. -3/2 == -2 in Python 2.
by kstrauser 10y ago
Slight correction: it always rounds toward zero. -3/2 == -2 in Python 2.
- willhslade 10y agoThat's away from zero.
- kstrauser 10y agoI am s-m-r-t smart! Sigh. Yes, it's rounding down. I feel a little vindicated that at least three people saw that and said, "oh, he's right. Have my upvote!"