Fwd: Using fractions instead of floats

Laurent Pointal laurent.pointal at limsi.fr
Mon Oct 1 03:51:59 EDT 2007


Andres Riofrio a écrit :
<zip>
> 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





More information about the Python-list mailing list