On Sun, Mar 8, 2009 at 3:08 PM, Lo <gr...@congstar.de> wrote: > I just tried python first time. > > 2/3 > > the result is zero > > I want the result to be .333... > > How do I get this?
Add the following to the top of your program: from __future__ import division That tells Python to use the proper kind of division, which is now the default in Python 3.0. Cheers, Chris -- I have a blog: http://blog.rebertia.com -- http://mail.python.org/mailman/listinfo/python-list