Re: Fwd: Using fractions instead of floats

2007-10-01 Thread Stargaming
On Sun, 30 Sep 2007 20:10:05 -0700, Andres Riofrio wrote: [snip] >>From what I've read, seems that the principal reason for rejecting the > PEP is that there was not much need (enthusiasm)... Well, then I have a > question: Is there a way to make 5/2 return something other than an > integer? I can

Re: Fwd: Using fractions instead of floats

2007-10-01 Thread Laurent Pointal
Andres Riofrio a écrit : > Well, then I have > a question: Is there a way to make 5/2 return something other than an > integer? >>> from __future__ import division >>> 5/2 2.5 -- http://mail.python.org/mailman/listinfo/python-list

Re: Fwd: Using fractions instead of floats

2007-09-30 Thread Gabriel Genellina
En Mon, 01 Oct 2007 00:10:05 -0300, Andres Riofrio <[EMAIL PROTECTED]> escribi�: > From what I've read, seems that the principal reason for rejecting the > PEP is that there was not much need (enthusiasm)... Well, then I have > a question: Is there a way to make 5/2 return something other than a

Fwd: Using fractions instead of floats

2007-09-30 Thread Andres Riofrio
PS: Sorry, George Sakkis, for the double emailing... I forgot to add python-list in the To: field the first time. :) Haha. Ok. Thank you for pointing me to those links :). I hadn't thought of searching for the word 'rational' instead of 'decimal'... >From what I've read, seems that the principal