Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #28702 > unrolled thread

Re: Division help in python

Started bySerhiy Storchaka <storchaka@gmail.com>
First post2012-09-07 21:17 +0300
Last post2012-09-07 21:17 +0300
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Division help in python Serhiy Storchaka <storchaka@gmail.com> - 2012-09-07 21:17 +0300

#28702 — Re: Division help in python

FromSerhiy Storchaka <storchaka@gmail.com>
Date2012-09-07 21:17 +0300
SubjectRe: Division help in python
Message-ID<mailman.365.1347041889.27098.python-list@python.org>
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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web