Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

If your working with integers, 1 div 3 is indeed zero.


That makes sense in a language like C, but in Python there's no telling if you've got integers or floats at the point the division happens.

I'm very happy it's fixed in Python 3.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: