[Tutor] Simple variable type question

Sander Sweers sander.sweers at gmail.com
Fri Feb 5 22:22:54 CET 2010


On vr, 2010-02-05 at 20:39 +0000, ALAN GAULD wrote:
> return float(x1-y1)/(x2-y2)

Does not work properly in version 2. Example is the 3rd doc test:
float((3-2)/(3-1)) gives 0.0 instead of 0.5. 

Greets
Sander



More information about the Tutor mailing list