Python 3000 deat !? Is true division ever coming ?

Gregory Piñero gregpinero at gmail.com
Tue Feb 14 11:16:06 EST 2006


On 14 Feb 2006 06:44:02 -0800, rainbow.cougar at gmail.com

> 5./2.=2.5 is floating point math, with all the round off errors that
> incorporates.

Thanks Curtis, I never knew that trick.  I guess for variables do have
true division you have to make them floats?  e.g.
float(var1)/float(var2)?  Or do you know a less typing approach for
that?

--
Gregory Piñero
Chief Innovation Officer
Blended Technologies
(www.blendedtechnologies.com)



More information about the Python-list mailing list