Division help in python
Ramyasri Dodla
ramyasri20 at gmail.com
Fri Sep 7 08:53:04 EDT 2012
Hi All,
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
some other examples for your review.
>>> -10/5
-2
>>> -5/-5
1
>>> 1/2
0
>>> -1/2
-1
>>> -1 /4
-1
I would be thankful to you if i got through this.
Ramya
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20120907/e41ad04b/attachment.html>
More information about the Python-list
mailing list