Division help in python
Serhiy Storchaka
storchaka at gmail.com
Fri Sep 7 14:17:40 EDT 2012
On 07.09.12 15:53, Ramyasri Dodla wrote:
> I am brand new to python. checking over basic stuff. I came across the
> problem while doing so. If any body aware of the problem, kindly respond me.
>
> >>> 5/10
> 0
> >>> - 5/10
> -1
>
> The second case also should yield a 'zero' but it is giving a -1
http://python-history.blogspot.com/2010/08/why-pythons-integer-division-floors.html
More information about the Python-list
mailing list